]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/fontdlgg.cpp
fixed GetItemSpacing() inconsistency by deprecating the old function and adding a...
[wxWidgets.git] / src / generic / fontdlgg.cpp
index 40aed1a7dcd95db8a4bf88c0218e743bf025c90f..0b0ed9a8421714549aca7aacd2139ba9c523ef0b 100644 (file)
@@ -348,6 +348,7 @@ void wxGenericFontDialog::OnChangeFont(wxCommandEvent& WXUNUSED(event))
     {
       m_fontData.m_fontColour = *col;
       m_previewer->SetForegroundColour(*col);
+      delete col;
     }
   }
   m_previewer->Refresh();