From: Robin Dunn Date: Mon, 29 Sep 2003 17:42:18 +0000 (+0000) Subject: Should not delete colours that come from the wxColourDatabase X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d588cb2b0a0b9ea9e9f14e53f976863efb268d8 Should not delete colours that come from the wxColourDatabase git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/fontdlgg.cpp b/src/generic/fontdlgg.cpp index 0b0ed9a842..40aed1a7dc 100644 --- a/src/generic/fontdlgg.cpp +++ b/src/generic/fontdlgg.cpp @@ -348,7 +348,6 @@ void wxGenericFontDialog::OnChangeFont(wxCommandEvent& WXUNUSED(event)) { m_fontData.m_fontColour = *col; m_previewer->SetForegroundColour(*col); - delete col; } } m_previewer->Refresh();