diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-12-19 00:13:44 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-12-19 00:13:44 +0000 |
| commit | 6f55cd01cf53108209c299e66c2fe189dc61a344 (patch) | |
| tree | 492dcd022652dc0ca3665f03203ff2c835d43460 /lib/gui/ewidget.cpp | |
| parent | e840db3c6ec507a72859965e85d1c08e0750f506 (diff) | |
| download | enigma2-6f55cd01cf53108209c299e66c2fe189dc61a344.tar.gz enigma2-6f55cd01cf53108209c299e66c2fe189dc61a344.zip | |
widget: don't crash when deallocating in wrong order
Diffstat (limited to 'lib/gui/ewidget.cpp')
| -rw-r--r-- | lib/gui/ewidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gui/ewidget.cpp b/lib/gui/ewidget.cpp index 6f7fa91b..3bc6e663 100644 --- a/lib/gui/ewidget.cpp +++ b/lib/gui/ewidget.cpp @@ -140,6 +140,8 @@ void eWidget::hide() while (root && !root->m_desktop) { root = root->m_parent; + if (!root) + return; abspos += root->position(); } assert(root->m_desktop); |
