From 961985ed5800005c8921353028a9d1d5379b775b Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Mon, 29 Aug 2016 16:19:20 +0900 Subject: [PATCH] subparse: fix svace issue Change-Id: I8faa67e4715198123e4d33c492c8569a84276dc0 --- gst/subparse/samiparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/subparse/samiparse.c b/gst/subparse/samiparse.c index 0f1bea3..5fc70bb 100644 --- a/gst/subparse/samiparse.c +++ b/gst/subparse/samiparse.c @@ -1140,11 +1140,12 @@ sami_context_change_language (ParserState * state) if (context->desired_language) { GST_LOG ("desired language was %s", context->desired_language); free (context->desired_language); + context->desired_language = NULL; } if(state->current_language) { context->desired_language = g_strdup(state->current_language); + GST_LOG ("desired language changed to %s", GST_STR_NULL(context->desired_language)); } - GST_LOG ("desired language changed to %s", GST_STR_NULL(context->desired_language)); } #endif -- 2.7.4