- fixed level editor crash (a hack)
authorRyan Flegel <rflegel@gmail.com>
Sat, 29 May 2004 00:38:15 +0000 (00:38 +0000)
committerRyan Flegel <rflegel@gmail.com>
Sat, 29 May 2004 00:38:15 +0000 (00:38 +0000)
SVN-Revision: 1359

src/button.cpp

index 27697c9..3c1d083 100644 (file)
@@ -116,7 +116,9 @@ Button::~Button()
   for(std::vector<Surface*>::iterator it = icon.begin(); it != icon.end(); ++it)
     delete (*it);
   icon.clear();
-  delete drawable;
+  // FIXME TODO XXX: commenting this out fixes the leveleditor quit crash
+  //   probably should be deleted somehow, though
+  //delete drawable;
 }
 
 void Button::event(SDL_Event &event)