diff options
author | jstebbins <[email protected]> | 2012-12-12 20:21:14 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-12-12 20:21:14 +0000 |
commit | 6a14c28cf9ed9c5f7eb217bc25c4a736326d3c13 (patch) | |
tree | e6fe227c5eb7717b9aeeb9c438d02d5a7d3e6dfe /macosx/HBPreviewController.m | |
parent | 0677b1b418d3cbaaa69cd2202283443036937150 (diff) |
fix some crashes in the macui
I missed setting some pointers to NULL after free and missed place
where the ui was setting job->file directly instead of using hb_job_set_file().
Also, a NULL chapter name caused a crash.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5097 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 03b341615..69b6f521e 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -859,7 +859,7 @@ } /* We now direct our preview encode to fPreviewMoviePath */ - fTitle->job->file = [fPreviewMoviePath UTF8String]; + hb_job_set_file(fTitle->job, [fPreviewMoviePath UTF8String]); /* We use our advance pref to determine how many previews to scan */ int hb_num_previews = [[[NSUserDefaults standardUserDefaults] objectForKey:@"PreviewsNumber"] intValue]; |