X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c933e267beed72a1c535c8d30ac930fc80587add..916eabe60eee4adb05387bbf1eaf1915ae5eac18:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 250ee8443c..1fd767a47f 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1263,6 +1263,8 @@ bool wxMsgCatalogFile::Load(const wxString& szDirPrefix, const wxString& szName, // read the whole file in memory if ( fileMsg.Read(m_data.GetWriteBuf(nSize), nSize) != lenFile ) return false; + + m_data.UngetWriteBuf(nSize); #endif // wxUSE_FILESYSTEM/!wxUSE_FILESYSTEM