]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
More doxygen topic overview cleanup.
[wxWidgets.git] / src / xrc / xmlres.cpp
index 365a721f1d91673ea9b6a09b6df32a6120302d00..466faa9870f12e8290595f976ec1111bad030441 100644 (file)
@@ -235,6 +235,7 @@ bool wxXmlResource::Unload(const wxString& filename)
         {
             if ( (*i)->File == fnd )
             {
+                delete *i;
                 Data().erase(i);
                 unloaded = true;
 
@@ -966,7 +967,7 @@ wxString wxXmlResourceHandler::GetText(const wxString& param, bool translate)
 #else
             // The string is internally stored as UTF-8, we have to convert
             // it into system's default encoding so that it can be displayed:
-            return wxString(str2.mb_str(wxConvUTF8), wxConvLocal);
+            return wxString(str2.wc_str(wxConvUTF8), wxConvLocal);
 #endif
         }
     }