summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-30 07:45:00 +0000
committerritsuka <[email protected]>2015-05-30 07:45:00 +0000
commit39eff9d080effd0138c91f397632d24b38f7a441 (patch)
tree04e529f8b72ad44a628c6717a3b80afcc3950bb2 /macosx/HBPreset.h
parent2837048a59ac5beab0b3428ca89c86857765de0a (diff)
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
Diffstat (limited to 'macosx/HBPreset.h')
-rw-r--r--macosx/HBPreset.h2
1 files changed, 1 insertions, 1 deletions
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.