fix bug in Screen destructor, can lead to segfault at exit/restart

This commit is contained in:
mathias 2004-11-17 01:21:50 +00:00
parent b66caafa70
commit ca5d12bbde

View file

@ -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);