From b62563b907f2d7a3dfd2267825e39a53556cf002 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Dec 2018 00:57:35 +0100 Subject: [PATCH] Remove redundant Free() from wxFont::SetFractionalPointSize() Free() is already called from wxFontRefData::SetFractionalPointSize(), so there is no need to call it from wxFont too and doing this makes this method gratuitously inconsistent with all the other setters. No real changes. --- src/msw/font.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/msw/font.cpp b/src/msw/font.cpp index 2a74f6d1b2..cc4d52bdfb 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -855,7 +855,6 @@ void wxFont::SetFractionalPointSize(float pointSize) { AllocExclusive(); - M_FONTDATA->Free(); M_FONTDATA->SetFractionalPointSize(pointSize); }