projects
/
platform
/
core
/
context
/
sensor-recorder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706fab2
)
[Coverity Fixes][Sensor Recorder]
32/173732/2
accepted/tizen/unified/20180412.073742
submit/tizen/20180410.083915
author
Abhishek Vijay
<abhishek.v@samsung.com>
Fri, 23 Mar 2018 12:18:56 +0000
(17:48 +0530)
committer
Abhishek Vijay
<abhishek.v@samsung.com>
Thu, 29 Mar 2018 08:38:06 +0000
(14:08 +0530)
Change-Id: I102aa9e56929d118ccd8cca2dc4108eba8708668
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
src/client/sensor_recorder.cpp
patch
|
blob
|
history
diff --git
a/src/client/sensor_recorder.cpp
b/src/client/sensor_recorder.cpp
index
37a579c
..
f3754f9
100644
(file)
--- a/
src/client/sensor_recorder.cpp
+++ b/
src/client/sensor_recorder.cpp
@@
-169,8
+169,11
@@
EXPORT_API int ctx_sensor_rec_read_sync(const char* subject, ctx_sensor_rec_quer
GVariant* outParam = NULL;
int error = __getServiceProxy()->call(METHOD_READ_REC, param, &outParam);
- IF_FAIL_RETURN(error == E_NONE, error);
-
+ if (error != E_NONE) {
+ delete listener;
+ listener = NULL;
+ return error;
+ }
listener->onSuccess(METHOD_READ_REC, outParam);
g_variant_unref(outParam);