-wxColour *g_systemBtnFaceColour = NULL;
-wxColour *g_systemBtnShadowColour = NULL;
-wxColour *g_systemBtnHighlightColour = NULL;
-wxColour *g_systemHighlightColour = NULL;
+wxColour *g_systemBtnFaceColour = (wxColour *) NULL;
+wxColour *g_systemBtnShadowColour = (wxColour *) NULL;
+wxColour *g_systemBtnHighlightColour = (wxColour *) NULL;
+wxColour *g_systemHighlightColour = (wxColour *) NULL;
+
+wxFont *g_systemFont = (wxFont *) NULL;
+
+void wxSystemSettings::Done() {
+ wxDELETE(g_systemBtnFaceColour);
+ wxDELETE(g_systemBtnShadowColour);
+ wxDELETE(g_systemBtnHighlightColour);
+ wxDELETE(g_systemHighlightColour);
+ wxDELETE(g_systemFont);
+}