[pulse] Model the correct CFAutorelease

Reviewed By: ezgicicek

Differential Revision: D20941777

fbshipit-source-id: 150924949
master
Dulma Churchill 5 years ago committed by Facebook GitHub Bot
parent bf671af2b2
commit 59ea968de8

@ -565,7 +565,7 @@ module ProcNameDispatcher = struct
; +PatternMatch.ObjectiveC.is_core_graphics_create_or_copy &++> ObjectiveC.alloc ; +PatternMatch.ObjectiveC.is_core_graphics_create_or_copy &++> ObjectiveC.alloc
; +PatternMatch.ObjectiveC.is_core_graphics_release <>$ capt_arg_payload $--> C.free ; +PatternMatch.ObjectiveC.is_core_graphics_release <>$ capt_arg_payload $--> C.free
; -"CFRelease" <>$ capt_arg_payload $--> C.free ; -"CFRelease" <>$ capt_arg_payload $--> C.free
; -"CFAutoRelease" <>$ capt_arg_payload $--> C.free ] ; -"CFAutorelease" <>$ capt_arg_payload $--> C.free ]
end end
let dispatch tenv proc_name args = ProcNameDispatcher.dispatch tenv proc_name args let dispatch tenv proc_name args = ProcNameDispatcher.dispatch tenv proc_name args

@ -48,7 +48,7 @@
+ (void)cg_bitmap_context_create_image1_no_leak_good { + (void)cg_bitmap_context_create_image1_no_leak_good {
CGImageRef newImage = CGBitmapContextCreateImage(nil); CGImageRef newImage = CGBitmapContextCreateImage(nil);
CFAutoRelease(newImage); CFAutorelease(newImage);
} }
@end @end

Loading…
Cancel
Save