[Libreoffice-commits] core.git: apple_remote/source

Julien Nabet serval2412 at yahoo.fr
Wed Oct 11 18:09:55 UTC 2017


 apple_remote/source/HIDRemoteControlDevice.m |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 47039a11dae0a614213cae136fe705d32f9efa1c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Oct 11 19:08:39 2017 +0200

    tdf#111561: try to fix leak in HIDRemoteControlDevice (apple_remote)
    
    Change-Id: I6539f1cc9612eb3380381a54d3d1d674fd66cc03
    Reviewed-on: https://gerrit.libreoffice.org/43329
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/apple_remote/source/HIDRemoteControlDevice.m b/apple_remote/source/HIDRemoteControlDevice.m
index b96ac721b3b3..eb62c02f52df 100644
--- a/apple_remote/source/HIDRemoteControlDevice.m
+++ b/apple_remote/source/HIDRemoteControlDevice.m
@@ -452,6 +452,8 @@ static void QueueCallbackFunction(void* target,  IOReturn result, void* refcon,
 
 			[allCookies addObject: [NSNumber numberWithInt:(int)cookie]];
 		}
+                CFRelease(elements);
+                elements=nil;
 	} else {
 		return NO;
 	}


More information about the Libreoffice-commits mailing list