X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5bfbd9ab85dd7f07f5cb97353bca4963e63202a..06d4c4d65aa052a7586dd42bf0d558c46699b564:/src/common/fmapbase.cpp diff --git a/src/common/fmapbase.cpp b/src/common/fmapbase.cpp index ebc2bd3666..ccf7de0844 100644 --- a/src/common/fmapbase.cpp +++ b/src/common/fmapbase.cpp @@ -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; } }