libyui/libyui — pull request #28 by dmacvicar (2012-07-31 14:13:31+00:00)
Title: Fix crash due to undefined destruction order

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.