Bug 533658 - Memory leak in nsScreenManagerQt, r=mark.finkle
authorJames Cook <bringbackbsd@hotmail.com>
Wed, 09 Dec 2009 00:16:00 -0800
changeset 35696 bc0849430750575ea1e08a4ce81241f62da02103
parent 35695 10c98bccd40bc6da00b94cd43f722390212743aa
child 35697 d6cf9a15c50fc191d563b7f12c6e0b61086800d7
push id10682
push userphilringnalda@gmail.com
push dateMon, 14 Dec 2009 02:11:07 +0000
treeherdermozilla-central@bc0849430750 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmark
bugs533658
milestone1.9.3a1pre
Bug 533658 - Memory leak in nsScreenManagerQt, r=mark.finkle
widget/src/qt/nsScreenManagerQt.cpp
--- a/widget/src/qt/nsScreenManagerQt.cpp
+++ b/widget/src/qt/nsScreenManagerQt.cpp
@@ -41,22 +41,22 @@
 #include "nsScreenQt.h"
 
 #include "qdesktopwidget.h"
 #include "qapplication.h"
 
 nsScreenManagerQt::nsScreenManagerQt()
 {
     desktop = 0;
+    screens = 0;
 }
 
-
 nsScreenManagerQt::~nsScreenManagerQt()
 {
-    // nothing to see here.
+    delete [] screens;
 }
 
 // addref, release, QI
 NS_IMPL_ISUPPORTS1(nsScreenManagerQt, nsIScreenManager)
 
 void nsScreenManagerQt::init()
 {
     if (desktop)