[Kst] extragear/graphics/kst/kst

Laurent Montel montel at kde.org
Fri Aug 19 13:46:09 CEST 2005


SVN commit 450879 by mlaurent:

Fix potential mem leak


 M  +2 -0      kstfilterdialog_i.cpp  
 M  +2 -0      kstfitdialog_i.cpp  
 M  +2 -0      kstplugindialog_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstfilterdialog_i.cpp #450878:450879
@@ -426,6 +426,8 @@
     widget->show();
 
     if (!(*it)._description.isEmpty()) {
+      QWhatsThis::remove(label);
+      QWhatsThis::remove(widget);
       QWhatsThis::add(label, (*it)._description);
       QWhatsThis::add(widget, (*it)._description);
     }
--- trunk/extragear/graphics/kst/kst/kstfitdialog_i.cpp #450878:450879
@@ -379,6 +379,8 @@
     widget->show();
     
     if (!(*it)._description.isEmpty()) {
+      QWhatsThis::remove(label);
+      QWhatsThis::remove(widget);
       QWhatsThis::add(label, (*it)._description);
       QWhatsThis::add(widget, (*it)._description);
     }
--- trunk/extragear/graphics/kst/kst/kstplugindialog_i.cpp #450878:450879
@@ -788,6 +788,8 @@
     widget->show();
 
     if (!(*it)._description.isEmpty()) {
+      QWhatsThis::remove(label);
+      QWhatsThis::remove(widget);
       QWhatsThis::add(label, (*it)._description);
       QWhatsThis::add(widget, (*it)._description);
     }


More information about the Kst mailing list