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
This commit is contained in:
@@ -386,6 +386,7 @@ void wxApp::CommonCleanUp()
|
|||||||
|
|
||||||
// wxDefaultResourceTable->ClearTable();
|
// wxDefaultResourceTable->ClearTable();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Indicate that the cursor can be freed,
|
// Indicate that the cursor can be freed,
|
||||||
// so that cursor won't be deleted by deleting
|
// so that cursor won't be deleted by deleting
|
||||||
// the bitmap list before g_globalCursor goes out
|
// the bitmap list before g_globalCursor goes out
|
||||||
@@ -396,17 +397,7 @@ void wxApp::CommonCleanUp()
|
|||||||
wxDeleteStockObjects() ;
|
wxDeleteStockObjects() ;
|
||||||
|
|
||||||
// Destroy all GDI lists, etc.
|
// Destroy all GDI lists, etc.
|
||||||
delete wxTheBrushList;
|
wxDeleteStockLists();
|
||||||
wxTheBrushList = NULL;
|
|
||||||
|
|
||||||
delete wxThePenList;
|
|
||||||
wxThePenList = NULL;
|
|
||||||
|
|
||||||
delete wxTheFontList;
|
|
||||||
wxTheFontList = NULL;
|
|
||||||
|
|
||||||
delete wxTheBitmapList;
|
|
||||||
wxTheBitmapList = NULL;
|
|
||||||
|
|
||||||
delete wxTheColourDatabase;
|
delete wxTheColourDatabase;
|
||||||
wxTheColourDatabase = NULL;
|
wxTheColourDatabase = NULL;
|
||||||
|
Reference in New Issue
Block a user