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 61705a1443c57f580ec56c6ce5b3cf9a156089d9..d8bc383334e658990b24d2d09d6a2a12f68cbc68 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 2c15ac0de3b02796a97cc67a6617b5ae6b0e810b..f105b0858a321b1c5674048e3847c8a87d10435d 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 2e147098002b282f40c927335adbf7f05b96c8b6..c9474dad17273195c454239c6025938c53093ada 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 1c8ad67f17e7db387ab58445a9561df21685de7b..8d8e67ee47c821507e74470191ec8b117be8e30d 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;