Corrected a memory leak I introduced in the last patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1100,6 +1100,7 @@ wxDocument *wxDocManager::CreateDocument(const wxString& path, long flags)
|
|||||||
{
|
{
|
||||||
if (!CloseDocument(docToClose, FALSE))
|
if (!CloseDocument(docToClose, FALSE))
|
||||||
{
|
{
|
||||||
|
delete[] templates;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user