fixed prevent issue 2.1b_release accepted/tizen_2.1/20130425.035500 submit/tizen_2.1/20130424.230748
authorJaeho Lee <jaeho81.lee@samsung.com>
Wed, 24 Apr 2013 04:59:22 +0000 (13:59 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Wed, 24 Apr 2013 04:59:22 +0000 (13:59 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
packaging/app-core.spec
src/appcore-rotation.c

index 6dec867..154e9c5 100644 (file)
@@ -1,7 +1,7 @@
 Name:       app-core
 Summary:    Application basic
 Version:    1.2
-Release:    45
+Release:    46
 Group:      Application Framework
 License:    Apache License, Version 2.0
 Source0:    app-core-%{version}.tar.gz
index 27c747a..d3f9a25 100755 (executable)
@@ -224,7 +224,10 @@ EXPORT_API int appcore_set_rotation_cb(int (*cb) (enum appcore_rm, void *),
                r = sf_start(handle, 0);
                if (r < 0) {
                        _ERR("sf_start failed: %d", r);
-                       sf_unregister_event(handle, ACCELEROMETER_EVENT_ROTATION_CHECK);
+                       r = sf_unregister_event(handle, ACCELEROMETER_EVENT_ROTATION_CHECK);
+                       if (r < 0) {
+                               _ERR("sf_unregister_event failed: %d", r);
+                       }
                        rot.callback = NULL;
                        rot.cbdata = NULL;
                        rot.cb_set = 0;