|
From: <and...@us...> - 2011-09-03 22:54:51
|
Revision: 11908
http://plplot.svn.sourceforge.net/plplot/?rev=11908&view=rev
Author: andrewross
Date: 2011-09-03 22:54:45 +0000 (Sat, 03 Sep 2011)
Log Message:
-----------
Fix incorrect freeing of memory in QtPLWidget. Memory allocated with new XXXX[] should be released with delete[]. Valgrind picked this up.
Modified Paths:
--------------
trunk/bindings/qt_gui/plqt.cpp
Modified: trunk/bindings/qt_gui/plqt.cpp
===================================================================
--- trunk/bindings/qt_gui/plqt.cpp 2011-09-02 20:12:36 UTC (rev 11907)
+++ trunk/bindings/qt_gui/plqt.cpp 2011-09-03 22:54:45 UTC (rev 11908)
@@ -962,7 +962,7 @@
//
picDpi = picText.logicalDpiY();
pls->string_length = ( (PLFLT) xOffset / picDpi ) * 25.4;
- free( text );
+ delete[] text;
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|