[rkward-cvs] SF.net SVN: rkward:[2640] trunk/rkward/rkward/rbackend/rthread.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Sep 3 09:31:58 UTC 2009


Revision: 2640
          http://rkward.svn.sourceforge.net/rkward/?rev=2640&view=rev
Author:   tfry
Date:     2009-09-03 09:31:58 +0000 (Thu, 03 Sep 2009)

Log Message:
-----------
Plug a small memory leak

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rthread.cpp

Modified: trunk/rkward/rkward/rbackend/rthread.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rthread.cpp	2009-09-03 09:05:33 UTC (rev 2639)
+++ trunk/rkward/rkward/rbackend/rthread.cpp	2009-09-03 09:31:58 UTC (rev 2640)
@@ -590,6 +590,7 @@
 				toplevel_env_names.append (strings[i]);
 			}
 		}
+		delete [] strings;
 	
 	// TODO: avoid parsing this over and over again
 		RK_DO (qDebug ("checkObjectUpdatesNeeded: getting globalenv symbols"), RBACKEND, DL_TRACE);
@@ -611,6 +612,7 @@
 				global_env_toplevel_names.append (strings[i]);
 			}
 		}
+		delete [] strings;
 	
 		if (search_update_needed) {	// this includes an update of the globalenv, even if not needed
 			MUTEX_UNLOCK;


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