Applied fix #11520: resource leak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@66918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2011-02-16 21:55:02 +00:00
parent 10666a6642
commit 03d6b119ca

View File

@@ -593,7 +593,11 @@ bool DocGeneratorBase::SaveDocument( const char* fname,
ScriptStream stm; ScriptStream stm;
// check if derived class agrees about saving it // check if derived class agrees about saving it
if ( !OnSaveDocument( stm ) ) return 0; if ( !OnSaveDocument( stm ) )
{
fclose( fp );
return 0;
}
if ( pFromSection ) if ( pFromSection )