Augustin Cavalier c3ac0a72a6 BMenuItem: Remove ourselves from the super menu on destruct.
This fixes the (intermittently) crashing test added in the previous commit,
and should also fix #12024 and #14348.

Note that this is a slight behavioral departure from BeOS, though since
BeOS crashed when this was done previously, it shouldn't cause any
other problems.

Change-Id: I90b6132ff7741b8d6cb601375a9b11fc3ffacb40
Reviewed-on: https://review.haiku-os.org/541
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-12 01:15:48 +00:00
..
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2017-11-09 13:23:55 -08:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2017-11-09 13:23:55 -08:00
2013-02-07 02:01:19 -05:00
2017-11-09 13:23:55 -08:00
2017-11-09 13:23:55 -08:00
2014-06-13 17:44:22 -04:00
2017-11-09 13:23:55 -08:00
2017-11-09 13:23:55 -08:00
2014-06-13 17:44:22 -04:00
2017-11-09 13:23:55 -08:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2015-07-07 16:22:27 -07:00
2014-06-13 17:44:22 -04:00
2014-07-14 19:16:06 -04:00
2014-06-13 17:44:22 -04:00
2014-06-13 17:44:22 -04:00
2017-11-09 13:23:55 -08:00