pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3227 - trunk/pingus/src/editor


From: jsalmon3
Subject: [Pingus-CVS] r3227 - trunk/pingus/src/editor
Date: Sat, 22 Sep 2007 06:29:24 +0200

Author: jsalmon3
Date: 2007-09-22 06:29:19 +0200 (Sat, 22 Sep 2007)
New Revision: 3227

Modified:
   trunk/pingus/src/editor/editor_viewport.cpp
Log:
Fixed memory leak

Modified: trunk/pingus/src/editor/editor_viewport.cpp
===================================================================
--- trunk/pingus/src/editor/editor_viewport.cpp 2007-09-22 04:08:01 UTC (rev 
3226)
+++ trunk/pingus/src/editor/editor_viewport.cpp 2007-09-22 04:29:19 UTC (rev 
3227)
@@ -50,6 +50,11 @@
 EditorViewport::~EditorViewport ()
 {
   delete drawing_context;
+
+  for(std::vector<LevelObj*>::iterator i = objs.begin(); i != objs.end(); ++i)
+    {
+      delete *i;
+    }
 }
 
 void





reply via email to

[Prev in Thread] Current Thread [Next in Thread]