Resolved Coverity Issue 111697 47/202047/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.033344 accepted/tizen/5.5/unified/mobile/hotfix/20201027.071112 accepted/tizen/5.5/unified/wearable/hotfix/20201027.095009 accepted/tizen/unified/20190327.160613 submit/tizen/20190326.141954 submit/tizen_5.5/20191031.000009 submit/tizen_5.5/20191031.000011 submit/tizen_5.5/20191031.000013 submit/tizen_5.5_mobile_hotfix/20201026.185109 submit/tizen_5.5_wearable_hotfix/20201026.184309 tizen_5.5.m2_release
authorKartik Tidke <kr.tidke@samsung.com>
Fri, 22 Mar 2019 14:18:46 +0000 (19:48 +0530)
committerKartik Tidke <kr.tidke@samsung.com>
Fri, 22 Mar 2019 14:18:46 +0000 (19:48 +0530)
Change-Id: I316f1f59f44e03ef4d83582273745f30fa4d1067
Signed-off-by: Kartik Tidke <kr.tidke@samsung.com>
src/view/audio-recorder-view.c

index 1f4de30..3a78d77 100644 (file)
@@ -205,8 +205,15 @@ static void _recorder_destroy(audio_recorder_view *view)
                        LOGD("recorder_cancel err = %d ", ret_val);
                }
 
-               recorder_unprepare(view->recorder);
-               recorder_destroy(view->recorder);
+               ret_val = recorder_unprepare(view->recorder);
+               if (ret_val != RECORDER_ERROR_NONE) {
+                       LOGD("recorder_unprepare err = %d", ret_val);
+               }
+
+               ret_val = recorder_destroy(view->recorder);
+               if (ret_val != RECORDER_ERROR_NONE) {
+                       LOGD("recorder_destroy err = %d", ret_val);
+               }
                view->recorder = NULL;
        }
        if (view->gesture_long_tap) {