From 7a311019db0f2a22f588f13966c8d5697809dd02 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 2 May 2003 12:49:07 +0000 Subject: [PATCH] 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 --- src/common/docview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index ef47161..988fc0b 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1100,6 +1100,7 @@ wxDocument *wxDocManager::CreateDocument(const wxString& path, long flags) { if (!CloseDocument(docToClose, FALSE)) { + delete[] templates; return NULL; } } -- 2.7.4