diff options
author | jstebbins <[email protected]> | 2014-12-19 00:22:37 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-19 00:22:37 +0000 |
commit | bafa57c12cc62acc8370331b2b254ea8b51725fa (patch) | |
tree | 2eec88783c7204b17dc35c3b3bab35137172af2f /libhb | |
parent | 29a92dbc84e2cc29e12e01318fdfcb3ee3f7a7c6 (diff) |
json: fix memory leak in hb_get_preview_json
forgot to call hb_image_close on the image
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6610 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/hb_json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 4e4e09dcb..401607f7b 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -1287,6 +1287,7 @@ char* hb_get_preview_json(hb_handle_t * h, const char *json_param) json_array_append_new(planes, plane_dict); } json_object_set_new(dict, "Planes", planes); + hb_image_close(&image); char *result = json_dumps(dict, JSON_INDENT(4)|JSON_PRESERVE_ORDER); json_decref(dict); |