From ca5d12bbde61abfe3ad694464e58e01fa52fc389 Mon Sep 17 00:00:00 2001 From: mathias Date: Wed, 17 Nov 2004 01:21:50 +0000 Subject: fix bug in Screen destructor, can lead to segfault at exit/restart --- src/Screen.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index 2d5cf5e..da55b7e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.296 2004/10/18 01:24:23 akir Exp $ +// $Id$ #include "Screen.hh" @@ -408,6 +408,8 @@ BScreen::~BScreen() { // we need to destroy it before we destroy workspaces m_workspacemenu.reset(0); + // slit must be destroyed before headAreas (Struts) + m_slit.reset(0); if (geom_pixmap != None) imageControl().removeImage(geom_pixmap); -- cgit v0.11.2