Skip to content

Commit

Permalink
Merge pull request #14604 from unoplatform/mergify/bp/release/stable/…
Browse files Browse the repository at this point in the history
…5.0/pr-14599

fix(radiobuttons): Finalizer shouldn't access a DP (backport #14599)
  • Loading branch information
jeromelaban authored Nov 29, 2023
2 parents 1b1acf3 + 1f85425 commit e7f60dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ItemsRepeater GetRepeater()
repeater.ElementClearing += OnRepeaterElementClearing;
repeater.ElementIndexChanged += OnRepeaterElementIndexChanged;
repeater.Loaded += OnRepeaterLoaded;
repeater.Unloaded += OnRepeaterUnloaded;
return repeater;
}
return null;
Expand Down Expand Up @@ -664,7 +665,7 @@ internal void SetTestHooksEnabled(bool enabled)
}
}

~RadioButtons()
private void OnRepeaterUnloaded(object sender, RoutedEventArgs args)
{
var layout = GetLayout();
if (layout != null)
Expand Down

0 comments on commit e7f60dc

Please sign in to comment.