Hide control before marking it destroyed, otherwise we may arrange an invalid object.
[GB.GTK] * BUG: Hide control before marking it destroyed, otherwise we may arrange an invalid object. [GB.GTK3] * BUG: Hide control before marking it destroyed, otherwise we may arrange an invalid object.
This commit is contained in:
parent
a879b7313c
commit
ac60e5e43e
1 changed files with 1 additions and 2 deletions
|
@ -488,9 +488,8 @@ void gControl::destroy()
|
|||
#if DEBUG_DESTROY
|
||||
fprintf(stderr, "destroy: %p %s (%d)\n", this, name(), _destroyed);
|
||||
#endif
|
||||
_destroyed = true;
|
||||
|
||||
hide();
|
||||
_destroyed = true;
|
||||
dispose();
|
||||
|
||||
#if DEBUG_DESTROY
|
||||
|
|
Loading…
Reference in a new issue