From: David Elliott Date: Tue, 18 Jan 2005 03:32:52 +0000 (+0000) Subject: Sending copy to an instance infers ownership by the sender so we must X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f48ab29b5ca119b021a8805cca6b4df3dd6f2356 Sending copy to an instance infers ownership by the sender so we must send release to the returned instance when we're done. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/dc.mm b/src/cocoa/dc.mm index 7ef93f80ee..b74aa7bbf7 100644 --- a/src/cocoa/dc.mm +++ b/src/cocoa/dc.mm @@ -194,6 +194,7 @@ void wxDC::CocoaUnapplyTransformations() invertTransform = [m_cocoaWxToBoundsTransform copy]; [invertTransform invert]; [invertTransform concat]; + [invertTransform release]; } bool wxDC::CocoaGetBounds(void *rectData)