diff options
author | jstebbins <[email protected]> | 2015-06-01 15:39:05 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-06-01 15:39:05 +0000 |
commit | abefd8dfa1e9a4690e1487b854b25eeb247c1903 (patch) | |
tree | dc50151c47009e81cb7fa2e3c8e9ed2edb932353 | |
parent | 7e778cf7bf897b692754745862598fbc12cf877c (diff) |
Fix a couple of memory leaks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7254 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/presets.c | 1 | ||||
-rw-r--r-- | libhb/hb_json.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 1676f7056..ced417cf8 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -672,6 +672,7 @@ presets_add_config_file(const gchar *name) hb_presets_builtin_update(); store_presets(); } + hb_value_free(&preset); return 0; } return -1; diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 69760cd83..21089e219 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -744,6 +744,7 @@ void hb_json_job_scan( hb_handle_t * h, const char * json_job ) if (result < 0) { hb_error("json unpack failure, failed to find title: %s", error.text); + hb_value_free(&dict); return; } @@ -760,6 +761,7 @@ void hb_json_job_scan( hb_handle_t * h, const char * json_job ) hb_snooze(50); hb_get_state2(h, &state); } + hb_value_free(&dict); } static int validate_audio_codec_mux(int codec, int mux, int track) |