]> git.saurik.com Git - wxWidgets.git/commitdiff
Should not delete colours that come from the wxColourDatabase
authorRobin Dunn <robin@alldunn.com>
Mon, 29 Sep 2003 17:42:18 +0000 (17:42 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 29 Sep 2003 17:42:18 +0000 (17:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/fontdlgg.cpp

index 0b0ed9a8421714549aca7aacd2139ba9c523ef0b..40aed1a7dcd95db8a4bf88c0218e743bf025c90f 100644 (file)
@@ -348,7 +348,6 @@ void wxGenericFontDialog::OnChangeFont(wxCommandEvent& WXUNUSED(event))
     {
       m_fontData.m_fontColour = *col;
       m_previewer->SetForegroundColour(*col);
-      delete col;
     }
   }
   m_previewer->Refresh();