From 44b4624ed83d018c49576e4c2f6a24ce623822ad Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 13 Jun 2007 12:35:29 +0000 Subject: [PATCH] fixing 1736298 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 38842ac684..9260d71154 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -684,6 +684,7 @@ wxSize wxFont::GetPixelSize() const dc->SetFont(*(wxFont *)this,*wxBLACK); wxDouble width, height = 0; dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL); + delete dc; return wxSize((int)width, (int)height); #else return wxFontBase::GetPixelSize();