projects
/
platform
/
core
/
iot
/
iotcon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix the problem when structures are destoried, repeatedly
[platform/core/iot/iotcon.git]
/
lib
/
icl-resource.c
diff --git
a/lib/icl-resource.c
b/lib/icl-resource.c
index
2e54af5
..
b077a6c
100644
(file)
--- a/
lib/icl-resource.c
+++ b/
lib/icl-resource.c
@@
-265,7
+265,9
@@
API int iotcon_resource_destroy(iotcon_resource_h resource)
return ret;
}
resource->handle = 0;
+
icl_dbus_unsubscribe_signal(resource->sub_id);
+ resource->sub_id = 0;
return IOTCON_ERROR_NONE;
}