[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/digikam/libs/widgets
From:       Renchi Raju <renchi () pooh ! tam ! uiuc ! edu>
Date:       2005-07-10 22:39:46
Message-ID: 1121035186.320314.6981.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 433475 by pahlibar:

fix memory leak which caused plugins to swap out


 M  +3 -1      imageregionwidget.cpp  


--- trunk/extragear/graphics/digikam/libs/widgets/imageregionwidget.cpp #433474:433475
@@ -114,7 +114,9 @@
 {
     int w = img->width();
     int h = img->height();
-    m_pix = new QPixmap(w, h);
+
+    if (!m_pix)
+        m_pix = new QPixmap(w, h);
     m_pix->convertFromImage(*img);
     
     horizontalScrollBar()->setLineStep( 1 );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic