summaryrefslogtreecommitdiff
path: root/src/display.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-08-21 03:29:25 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-08-21 03:29:25 +0200
commit1dc7bcb93e7b32cdd0674d1a94f3f7add1fd9bda (patch)
treef754520f393bef81acad25a5d93d7d448a675198 /src/display.cpp
parent4db5fe0236fc3b6a4505932253b96e5f7618d3b1 (diff)
downloadzcomp-1dc7bcb93e7b32cdd0674d1a94f3f7add1fd9bda.tar.gz
zcomp-1dc7bcb93e7b32cdd0674d1a94f3f7add1fd9bda.tar.bz2
Fixed segfaults.
Diffstat (limited to 'src/display.cpp')
-rw-r--r--src/display.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/display.cpp b/src/display.cpp
index 0a842bd..259f4a9 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -725,10 +725,7 @@ CompDisplay::CompDisplay () :
CompDisplay::~CompDisplay ()
{
while (!priv->screens.empty ())
- {
removeScreen (priv->screens.front ());
- priv->screens.pop_front ();
- }
CompPlugin::objectFiniPlugins (this);
@@ -2473,7 +2470,7 @@ DisplayInterface::logMessage (const char *componentName,
PrivateDisplay::PrivateDisplay (CompDisplay *display) :
display (display),
- screens (0),
+ screens (),
watchFdHandle (0),
screenInfo (0),
textureFilter (GL_LINEAR),