Skip to content

Commit

Permalink
Merge pull request #14599 from unoplatform/Youssef1313/radiobuttons-f…
Browse files Browse the repository at this point in the history
…inalizer

fix(radiobuttons): Finalizer shouldn't access a DP
  • Loading branch information
jeromelaban authored Nov 28, 2023
2 parents 09b2490 + a4b2275 commit 5e3a9e6
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 5e3a9e6

Please sign in to comment.