From be81fa0f625125a46fcd343c4b46c069e37a1023 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 25 Aug 2015 12:55:59 +0000 Subject: [PATCH] Fix potential Windows GDI leak (STR #3254). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 0c2a71f7b..5823294a6 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1154,6 +1154,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar R = CreateRectRgn(0,0,0,0); int r = GetUpdateRgn(hWnd,R,0); if (r==NULLREGION && !redraw_whole_window) { + XDestroyRegion(R); break; }