[rkward-cvs] SF.net SVN: rkward:[3039] trunk/rkward/rkward/rbackend

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Sep 14 15:20:15 UTC 2010


Revision: 3039
          http://rkward.svn.sourceforge.net/rkward/?rev=3039&view=rev
Author:   tfry
Date:     2010-09-14 15:20:14 +0000 (Tue, 14 Sep 2010)

Log Message:
-----------
Fix two small memory leaks

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rcommand.cpp
    trunk/rkward/rkward/rbackend/rkstructuregetter.cpp

Modified: trunk/rkward/rkward/rbackend/rcommand.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rcommand.cpp	2010-09-14 15:06:05 UTC (rev 3038)
+++ trunk/rkward/rkward/rbackend/rcommand.cpp	2010-09-14 15:20:14 UTC (rev 3039)
@@ -69,6 +69,7 @@
 	for (QList<ROutput*>::const_iterator it = output_list.constBegin (); it != output_list.constEnd (); ++it) {
 		delete (*it);
 	}
+	delete [] receivers;
 	// The output_list itself is cleared automatically
 }
 

Modified: trunk/rkward/rkward/rbackend/rkstructuregetter.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rkstructuregetter.cpp	2010-09-14 15:06:05 UTC (rev 3038)
+++ trunk/rkward/rkward/rbackend/rkstructuregetter.cpp	2010-09-14 15:20:14 UTC (rev 3039)
@@ -444,6 +444,7 @@
 			}
 		}
 		UNPROTECT (1);   /* childnames_s */
+		delete [] childnames;
 	} else if (is_function) {
 		RData *funargsdata = new RData;
 		funargsdata->datatype = RData::StringVector;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list