summary history branches tags files
commit:65f85b857cf7ae4bff5dbecbe43d851f41200285
author:Trevor Bentley
committer:Trevor Bentley
date:Tue Dec 11 20:44:43 2018 +0100
parents:a69016c5a8ea0f3f05f0570f0a836543ef55e9dd
fix memory leak: release submenus when cleared
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
line changes: +1/-0
index 26629ee..9c7912e
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -193,6 +193,7 @@ impl TStatusBar for OSXStatusBar {
             let _: () = msg_send![quit_key, release];
             self.menu_bar.addItem_(app_menu_item);
             let _: () = msg_send![app_menu_item, release];
+            let _: () = msg_send![submenu, release];
             submenu
         }
     }