X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d55906de77d5e0a62729bbe6bd30d958f4c70099..66f75561893ea7b4bf429d1882d9cc0407ba932d:/src/common/paper.cpp

diff --git a/src/common/paper.cpp b/src/common/paper.cpp
index 49f76ed77e..db2f7e0a5d 100644
--- a/src/common/paper.cpp
+++ b/src/common/paper.cpp
@@ -374,8 +374,7 @@ bool wxPrintPaperModule::OnInit()
 
 void wxPrintPaperModule::OnExit()
 {
-    delete wxThePrintPaperDatabase;
-    wxThePrintPaperDatabase = NULL;
+    wxDELETE(wxThePrintPaperDatabase);
 }
 
 #endif // wxUSE_PRINTING_ARCHITECTURE