diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp
index 31eab70e8c..0385b27dd7 100644
--- a/src/html/helpfrm.cpp
+++ b/src/html/helpfrm.cpp
@@ -761,6 +761,9 @@ void wxHtmlHelpFrame::CreateContents()
imaged[it->m_Level] = TRUE;
}
}
+#if wxUSE_PRINTING_ARCHITECTURE
+ if (m_Printer) delete m_Printer;
+#endif
}