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:
@@ -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 )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user