[yast-commit] [libyui/libyui] ed8cc2: YDialog has a static stack with all dialogs. YUI (...
Branch: refs/heads/fix_dialog_stack_destroyed Home: https://github.com/libyui/libyui Commit: ed8cc2bac41a1dd344ed3028f7fd3b259a0e0b2a https://github.com/libyui/libyui/commit/ed8cc2bac41a1dd344ed3028f7fd3b259a0e... Author: Duncan Mac-Vicar P <dmacvicar@suse.de> Date: 2012-07-31 (Tue, 31 Jul 2012) Changed paths: M src/YDialog.cc M src/YUI.cc Log Message: ----------- YDialog has a static stack with all dialogs. YUI (singleton) destructor calls YDialog::deleteAllDialogs which accesses the stack to delete all dialogs. The problem is that the YUI destructor is called from the static YUITerminator destructor. We can't summe this is called before the static dialog stack is destroyed. So to fix it, move the definition of the dialog stack to the same YUI.cc compilation unit, before the YUITerminator static, so that it is destroyed afterwards.
participants (1)
-
GitHub