closed memory leak

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-02-10 22:11:04 +00:00
parent ee36ebc394
commit 96125e6e4a

View File

@ -660,20 +660,15 @@ void fl_push_clip(int x, int y, int w, int h) {
CombineRgn(r,r,current,RGN_AND);
#elif defined(__APPLE_QUARTZ__)
#ifdef __APPLE_COCOA__
XDestroyRegion(r);
r = MacRectRegionIntersect(current, x,y,w,h);
XDestroyRegion(r);
r = MacRectRegionIntersect(current, x,y,w,h);
#else
SectRgn(r, current, r);
SectRgn(r, current, r);
#endif
#else
# error unsupported platform
#endif
}
#if defined(__APPLE_QUARTZ__)
else {
r = XRectangleRegion(x,y,w,h);
}
#endif
} else { // make empty clip region:
#if defined(USE_X11)
r = XCreateRegion();