summaryrefslogtreecommitdiff
path: root/src/display.cpp
diff options
context:
space:
mode:
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),