]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/poem/wxpoem.cpp
compilation fix
[wxWidgets.git] / demos / poem / wxpoem.cpp
index 23bc9b7eb5f37fb544eef0aff63676c74685d8ca..3866bdef482e6a015f79334fbd9e5ce574ca2732 100644 (file)
@@ -680,9 +680,13 @@ int MyApp::OnExit()
   delete Corner3;
   delete Corner4;
 
   delete Corner3;
   delete Corner4;
 
+  // Causes crash since they're deleted by the global font list
+#if 0
   delete NormalFont;
   delete BoldFont;
   delete ItalicFont;
   delete NormalFont;
   delete BoldFont;
   delete ItalicFont;
+#endif
+
   delete[] poem_buffer;
   if (search_string)
     delete[] search_string;
   delete[] poem_buffer;
   if (search_string)
     delete[] search_string;