From 65634a18d1b4ef13a16d0f22a35fba332952b934 Mon Sep 17 00:00:00 2001 From: saurabhkapur Date: Wed, 11 Jan 2017 05:57:28 +0530 Subject: [PATCH] Fixes #618 (#619) --- src/lib_ccx/ccx_decoders_708.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib_ccx/ccx_decoders_708.c b/src/lib_ccx/ccx_decoders_708.c index 04d09c76..993c9f8a 100644 --- a/src/lib_ccx/ccx_decoders_708.c +++ b/src/lib_ccx/ccx_decoders_708.c @@ -966,6 +966,13 @@ void dtvcc_handle_DFx_DefineWindow(ccx_dtvcc_service_decoder *decoder, int windo if (window->visible) _dtvcc_window_update_time_show(window, timing); + if (!window->memory_reserved) + { + for (int i = 0; i < CCX_DTVCC_MAX_ROWS; i++) + { + free(window->rows[i]); + } + } } void dtvcc_handle_SWA_SetWindowAttributes(ccx_dtvcc_service_decoder *decoder, unsigned char *data)