diff options
-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) |