From: Hyungdeuk Kim Date: Thu, 1 Aug 2013 07:57:19 +0000 (+0900) Subject: add code to check func ret for fixing prevent issue X-Git-Tag: accepted/tizen/20131002.050353^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90081b4195433e218b35fd8dd04205a8a96acb97;p=platform%2Fcore%2Fappfw%2Fapp-core.git add code to check func ret for fixing prevent issue --- diff --git a/packaging/app-core.spec b/packaging/app-core.spec index dc1799d..5c843f6 100644 --- a/packaging/app-core.spec +++ b/packaging/app-core.spec @@ -1,7 +1,7 @@ Name: app-core Summary: Application basic Version: 1.2 -Release: 47 +Release: 48 Group: Application Framework License: Apache License, Version 2.0 Source0: app-core-%{version}.tar.gz diff --git a/src/appcore-rotation.c b/src/appcore-rotation.c index d3f9a25..4fb934d 100755 --- a/src/appcore-rotation.c +++ b/src/appcore-rotation.c @@ -359,7 +359,7 @@ EXPORT_API int appcore_resume_rotation_cb(void) return rot.wm_rotate->resume_rotation_cb(); } else { - int r; + int r,ret; enum appcore_rm m; _retv_if(rot.callback == NULL, 0); @@ -381,8 +381,10 @@ EXPORT_API int appcore_resume_rotation_cb(void) if (r < 0) { _ERR("sf_start in appcore_internal_sf_start failed: %d", r); - sf_unregister_event(rot.handle, + ret = sf_unregister_event(rot.handle, ACCELEROMETER_EVENT_ROTATION_CHECK); + if (ret < 0) + _ERR("sf_unregister_event failed: %d", ret); rot.cb_set = 0; return -1; }