Fix SVACE issues 24/151324/1
authorRavi Kiran K N <ravi.kiran@samsung.com>
Wed, 20 Sep 2017 11:39:07 +0000 (17:09 +0530)
committerRavi Kiran K N <ravi.kiran@samsung.com>
Wed, 20 Sep 2017 11:39:07 +0000 (17:09 +0530)
Change-Id: I1bd9bb19387031ccae8f3ed19c3054ea32c6c27c
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
feature/src/vp-feature-util.c
playview/src/core/vp-device-language.c
playview/src/feature/vp-subtitle-font.c
src/view/mp-video-list-view-folder.c

index 61705a1..d8bc383 100644 (file)
@@ -20,7 +20,7 @@ bool vp_feature_util_calc_aspect_size(int nSrcW, int nSrcH, int nDestW,
                                                                          int nDestH, int nMinW, int nMinH,
                                                                          int *nResultW, int *nResultH)
 {
-       if (nSrcH == 0 || nSrcW == 0 || nDestW == 0 || nDestW == 0) {
+       if (nSrcH == 0 || nSrcW == 0 || nDestH == 0 || nDestW == 0) {
                vp_dbgE("invalid param : (src %d x %d) , (dest %d x %d)", nSrcW,
                                nSrcH, nDestW, nDestH);
                return FALSE;
index 2c15ac0..f105b08 100644 (file)
@@ -82,6 +82,10 @@ static void _vp_language_get_list(xmlNodePtr cur)
                                szNode->szLanguageName = pName;
                                szNode->szMcc = pMcc;
                                g_pLanglist = eina_list_append(g_pLanglist, szNode);
+                       } else {
+                               VP_FREE(pId);
+                               VP_FREE(pName);
+                               VP_FREE(pMcc);
                        }
                }
        }
index 2e14709..c9474da 100644 (file)
@@ -628,7 +628,8 @@ subtitle_font_handle vp_subtitle_font_create(Evas_Object * pParent,
        if (!_vp_subtitle_font_add_genlist_item
                (pSubtitleFont->pGenList, (void *) pSubtitleFont)) {
                VideoLogError("_vp_subtitle_font_add_genlist_item fail");
-               return FALSE;
+               _vp_subtitle_font_destroy_handle(pSubtitleFont);
+               return NULL;
        }
 
        evas_object_smart_callback_add(pSubtitleFont->pParent,
index 1c8ad67..8d8e67e 100644 (file)
@@ -1037,6 +1037,9 @@ void mp_folder_view_arrange_folder_list(void *pMainViewHandle,
 
        if (!g_pFolderView) {
                g_pFolderView = (stFolderView *) calloc(1, sizeof(stFolderView));
+               if (!g_pFolderView) {
+                       return;
+               }
        }
 
        g_pFolderView->bItemSelected = false;