pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r2730 - in branches/pingus_sdl/src: . editor


From: jsalmon3
Subject: [Pingus-CVS] r2730 - in branches/pingus_sdl/src: . editor
Date: Sat, 14 Jul 2007 07:02:53 +0200

Author: jsalmon3
Date: 2007-07-14 07:02:45 +0200 (Sat, 14 Jul 2007)
New Revision: 2730

Modified:
   branches/pingus_sdl/src/editor/editor_viewport.cpp
   branches/pingus_sdl/src/pingus_main.cpp
   branches/pingus_sdl/src/pingus_menu.cpp
Log:
Fixed memory leaks

Modified: branches/pingus_sdl/src/editor/editor_viewport.cpp
===================================================================
--- branches/pingus_sdl/src/editor/editor_viewport.cpp  2007-07-14 04:27:40 UTC 
(rev 2729)
+++ branches/pingus_sdl/src/editor/editor_viewport.cpp  2007-07-14 05:02:45 UTC 
(rev 2730)
@@ -52,6 +52,7 @@
 // Destructor
 EditorViewport::~EditorViewport ()
 {
+  delete scene_context;
 }
 
 // When someone right-clicks inside the viewport

Modified: branches/pingus_sdl/src/pingus_main.cpp
===================================================================
--- branches/pingus_sdl/src/pingus_main.cpp     2007-07-14 04:27:40 UTC (rev 
2729)
+++ branches/pingus_sdl/src/pingus_main.cpp     2007-07-14 05:02:45 UTC (rev 
2730)
@@ -746,7 +746,7 @@
     }
   else if (editor == true)
     {
-      ScreenManager::instance()->push_screen (new Editor::EditorScreen());
+      ScreenManager::instance()->push_screen (new Editor::EditorScreen(), 
true);
     }
   else // start a normal game
     {

Modified: branches/pingus_sdl/src/pingus_menu.cpp
===================================================================
--- branches/pingus_sdl/src/pingus_menu.cpp     2007-07-14 04:27:40 UTC (rev 
2729)
+++ branches/pingus_sdl/src/pingus_menu.cpp     2007-07-14 05:02:45 UTC (rev 
2730)
@@ -185,7 +185,7 @@
 void PingusMenu::do_edit()
 {      // Launch the level editor
   Sound::PingusSound::stop_music();
-  ScreenManager::instance()->push_screen (new Editor::EditorScreen());
+  ScreenManager::instance()->push_screen (new Editor::EditorScreen(), true);
 }
 
 void





reply via email to

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