From 39eff9d080effd0138c91f397632d24b38f7a441 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sat, 30 May 2015 07:45:00 +0000 Subject: MacGui: fix the leaks after using hb_presets_import_json and hb_presets_clean_json, add an extension to NSJSONSerialization to convert a char * directly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7245 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBPreset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macosx/HBPreset.h') diff --git a/macosx/HBPreset.h b/macosx/HBPreset.h index 10cf192d5..1c5375edb 100644 --- a/macosx/HBPreset.h +++ b/macosx/HBPreset.h @@ -35,7 +35,7 @@ typedef NS_ENUM(NSUInteger, HBPresetFormat) { * @return An initialized preset—which might be different than the original receiver—that contains the preset at URL, * or nil if there is an error or if the contents of the resource are not and HandBrake preset. */ -- (instancetype)initWithContentsOfURL:(NSURL *)url; +- (nullable instancetype)initWithContentsOfURL:(NSURL *)url; /** * Writes a property list or json representation of the contents of the preset to a given URL. -- cgit v1.2.3