diff options
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index f0f5d1d..dea8588 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -1152,6 +1152,8 @@ TkScrollWindow( srcRgn = HIShapeCreateWithRect(&srcRect); dstRgn = HIShapeCreateWithRect(&dstRect); ChkErr(HIShapeDifference, srcRgn, dstRgn, dmgRgn); + CFRelease(dstRgn); + CFRelease(srcRgn); result = HIShapeIsEmpty(dmgRgn) ? 0 : 1; } @@ -1162,10 +1164,6 @@ TkScrollWindow( TkMacOSXSetWithNativeRegion(damageRgn, dmgRgn); - /* - * Mutable shapes are not reference counted, and must be released. - */ - CFRelease(dmgRgn); return result; } |