]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fmapbase.cpp
Make IsOfClass out-of-line to defend against gcc 3.4.[56] bug:
[wxWidgets.git] / src / common / fmapbase.cpp
index ebc2bd3666f9742394df386c0ede9291bb50a60d..ccf7de0844d5f6b6b83fad2185f9519d0534af99 100644 (file)
@@ -325,7 +325,7 @@ void wxFontMapperBase::Reset()
         // we need a cast as wxFontMapper is not fully declared here and so the
         // compiler can't know that it derives from wxFontMapperBase (but
         // run-time behaviour will be correct because the dtor is virtual)
-        delete sm_instance;
+        delete (wxFontMapperBase *)sm_instance;
         sm_instance = NULL;
     }
 }