Avoid calling FlatMenu Destroy() in a finally block

Fixes: https://github.com/wxWidgets/Phoenix/issues/2630
This commit is contained in:
Scott Talbert
2024-11-08 18:39:02 -05:00
parent 45871c2959
commit 862086874f

View File

@@ -5358,10 +5358,8 @@ class FlatMenu(FlatMenuBase):
def Destroy(self, *args, **kwargs):
try:
self.Clear()
finally:
return super().Destroy(*args, **kwargs)
self.Clear()
return super().Destroy(*args, **kwargs)
def SetMenuBar(self, mb):