[WGID-447382] Resolve SVACE issue 06/244606/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/6.0/unified/20201030.103721 accepted/tizen/6.0/unified/20211029.040342 accepted/tizen/6.0/unified/20211029.081619 accepted/tizen/6.0/unified/hotfix/20201103.045717 accepted/tizen/6.5/unified/20211029.053751 accepted/tizen/7.0/unified/20221110.063122 accepted/tizen/7.0/unified/hotfix/20221116.111801 accepted/tizen/8.0/unified/20231005.095907 accepted/tizen/9.0/unified/20241030.235602 accepted/tizen/unified/20200922.230454 submit/tizen/20200922.100354 submit/tizen_6.0/20201029.205504 submit/tizen_6.0/20211029.144301 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 submit/tizen_6.5/20211028.164001 submit/tizen_6.5/20211029.140001 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorAmritanshu <a.pandia1@samsung.com>
Tue, 22 Sep 2020 08:48:16 +0000 (14:18 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Tue, 22 Sep 2020 08:48:16 +0000 (14:18 +0530)
Change-Id: I6c934af81e4e77847665c4e341a4ebb93e3dfd74
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
src/view/audio-recorder-view.c

index 545e80946549b019e0414baa6e86d702a72bfcf8..9ac90a4ceccd3d37ea24d1ec695797b3f27e5379 100755 (executable)
@@ -390,16 +390,14 @@ void _main_layout_add(Evas_Object *layout, ui_gadget_h ug_handle, app_control_h
        char *size_limit = NULL;
 
        ret = app_control_get_extra_data(service, APP_CONTROL_DATA_TOTAL_SIZE, &(size_limit));
-       if (ret != APP_CONTROL_ERROR_NONE) {
+       if (ret != APP_CONTROL_ERROR_NONE || (!size_limit)) {
                LOGD("Failed to get total_size information!!");
        } else {
                view->limitsize = atoi(size_limit);
-       }
-       if(size_limit)
-       {
                free(size_limit);
                size_limit = NULL;
        }
+
        LOGD("Size limit = %llu", view->limitsize);
 
        _recorder_create(view);