From cb852cd3eb5113b92ca8d0c09ecba5859d0920dc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 14 Feb 2005 11:11:19 +0000 Subject: Fl_Window::hide() didn't delete the current clipping region on WIN32, causing a GDI resource leak in some situations (STR #723) src/Fl.cxx: - Fl_Window::hide(): move XDestroyRegion() call outside of the X11-specific code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 5 ++++- src/Fl.cxx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 936cc5c0c..5a822c3a3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,7 +1,10 @@ CHANGES IN FLTK 1.1.7 - - Removed a few warnings when compiling on OS X - Documentation fixes (STR #648, STR #692) + - Fl_Window::hide() didn't delete the current clipping + region on WIN32, causing a GDI resource leak in some + situations (STR #723) + - Removed a few warnings when compiling on OS X - Fl_Menu now draws the arrow more like other toolkits and 2.0 (STR #651) - Fixed a VC++ compiler error in Fl_JPEG_Image.cxx (STR diff --git a/src/Fl.cxx b/src/Fl.cxx index 05970a8e9..dd0ebea81 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -842,10 +842,10 @@ void Fl_Window::hide() { Fl_X::q_release_context(ip); if ( ip->xid == fl_window ) fl_window = 0; -#else - if (ip->region) XDestroyRegion(ip->region); #endif + if (ip->region) XDestroyRegion(ip->region); + #ifdef __APPLE_QD__ if ( !parent() ) // don't destroy shared windows! { -- cgit v1.2.3