diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-14 11:11:19 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-14 11:11:19 +0000 |
| commit | cb852cd3eb5113b92ca8d0c09ecba5859d0920dc (patch) | |
| tree | d868dc9260b71b8e6e90c75d09ea2d74210fe887 /src/Fl.cxx | |
| parent | 80b9844b538d7218f55b1d0e02d493ed18e0c216 (diff) | |
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
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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! { |
