projects
/
platform
/
core
/
system
/
sensord.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rectifyng this poniter deletion from member function
[platform/core/system/sensord.git]
/
src
/
shared
/
channel.cpp
diff --git
a/src/shared/channel.cpp
b/src/shared/channel.cpp
index
446c881
..
639e9c1
100644
(file)
--- a/
src/shared/channel.cpp
+++ b/
src/shared/channel.cpp
@@
-49,8
+49,13
@@
public:
if (!m_ch->send_sync(m_msg))
return false;
- if (m_msg)
+ if (m_msg)
{
m_msg->unref();
+ if(m_msg->ref_count() <= 0) {
+ delete m_msg;
+ m_msg = NULL;
+ }
+ }
return false;
}