From 79fed14cee1b5934b76fc183401d46b4afe0376f Mon Sep 17 00:00:00 2001 From: Jaeho Lee Date: Wed, 24 Apr 2013 13:59:22 +0900 Subject: [PATCH] fixed prevent issue Signed-off-by: Jaeho Lee --- packaging/app-core.spec | 2 +- src/appcore-rotation.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packaging/app-core.spec b/packaging/app-core.spec index 6dec867..154e9c5 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: 45 +Release: 46 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 27c747a..d3f9a25 100755 --- a/src/appcore-rotation.c +++ b/src/appcore-rotation.c @@ -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; -- 2.7.4