fix bug in Screen destructor, can lead to segfault at exit/restart
This commit is contained in:
parent
b66caafa70
commit
ca5d12bbde
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Screen.cc,v 1.296 2004/10/18 01:24:23 akir Exp $
|
// $Id$
|
||||||
|
|
||||||
|
|
||||||
#include "Screen.hh"
|
#include "Screen.hh"
|
||||||
|
@ -408,6 +408,8 @@ BScreen::~BScreen() {
|
||||||
// we need to destroy it before we destroy workspaces
|
// we need to destroy it before we destroy workspaces
|
||||||
m_workspacemenu.reset(0);
|
m_workspacemenu.reset(0);
|
||||||
|
|
||||||
|
// slit must be destroyed before headAreas (Struts)
|
||||||
|
m_slit.reset(0);
|
||||||
|
|
||||||
if (geom_pixmap != None)
|
if (geom_pixmap != None)
|
||||||
imageControl().removeImage(geom_pixmap);
|
imageControl().removeImage(geom_pixmap);
|
||||||
|
|
Loading…
Reference in a new issue