From a781a38247a4e75c8c09d32e02161c72b6f029f0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Aug 1998 21:40:45 +0000 Subject: [PATCH] wxDeleteStockLists() used (instead of duplicating part of it's code) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/app.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 5001e54430..f89afb5f73 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -386,6 +386,7 @@ void wxApp::CommonCleanUp() // wxDefaultResourceTable->ClearTable(); #endif + // Indicate that the cursor can be freed, // so that cursor won't be deleted by deleting // the bitmap list before g_globalCursor goes out @@ -396,17 +397,7 @@ void wxApp::CommonCleanUp() wxDeleteStockObjects() ; // Destroy all GDI lists, etc. - delete wxTheBrushList; - wxTheBrushList = NULL; - - delete wxThePenList; - wxThePenList = NULL; - - delete wxTheFontList; - wxTheFontList = NULL; - - delete wxTheBitmapList; - wxTheBitmapList = NULL; + wxDeleteStockLists(); delete wxTheColourDatabase; wxTheColourDatabase = NULL;