Fix SVACE errors 18/151218/2
authorRavi Kiran K N <ravi.kiran@samsung.com>
Wed, 20 Sep 2017 08:05:26 +0000 (13:35 +0530)
committerRavi Kiran K N <ravi.kiran@samsung.com>
Wed, 20 Sep 2017 08:16:59 +0000 (13:46 +0530)
Change-Id: Ia76372c4f41d02c789b7a8a2889978cf87adc885
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
playview/src/feature/vp-subtitle-color.c
playview/src/feature/vp-subtitle-edge.c

index ca161e0..2b380b6 100644 (file)
@@ -637,6 +637,7 @@ static void _vp_play_subtitle_color_popup_colorpalette_cb(void *data,
                                                         caption_txt);
 
        //Need Free;
+       free(caption_txt);
        VideoLogInfo("p = %s", pSubtitleColor->pCurrentColorHex);
 }
 
@@ -780,6 +781,7 @@ static Evas_Object
                elm_object_part_text_set(pLayout,
                                                                 "pv.subtitle-color-popup.subject",
                                                                 caption_txt);
+               free(caption_txt);
                VP_FREE(szColorHex);
        }
 
@@ -1108,6 +1110,7 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object * pParent,
        pSubtitleColor->pColorplaneData =
                (SubtitleColorplaneData *) malloc(sizeof(SubtitleColorplaneData));
        if (!pSubtitleColor->pColorplaneData) {
+               _vp_subtitle_color_destroy_handle(pSubtitleColor);
                return NULL;
        }
        memset(pSubtitleColor->pColorplaneData, 0,
index ee21088..7cc0287 100644 (file)
@@ -409,7 +409,7 @@ subtitle_edge_handle vp_subtitle_edge_create(Evas_Object * pParent,
                (pSubtitleEdge->pGenList, (void *) pSubtitleEdge)) {
                VideoLogError("_vp_subtitle_size_add_genlist_item fail");
                _vp_subtitle_edge_destroy_handle(pSubtitleEdge);
-               return FALSE;
+               return NULL;
        }
 
        pSubtitleEdge->currentSubtitleEdge = nDefaultSize;