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
This commit is contained in:
Michael R Sweet 2005-02-14 11:11:19 +00:00
parent 80b9844b53
commit cb852cd3eb
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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!
{