projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64d547e
)
elm_color_class: Avoid resource leak
author
Stefan Schmidt
<s.schmidt@samsung.com>
Thu, 16 Apr 2015 14:05:02 +0000
(16:05 +0200)
committer
Stefan Schmidt
<s.schmidt@samsung.com>
Thu, 16 Apr 2015 14:05:02 +0000
(16:05 +0200)
We would leak ecc here when we return so we need to free it before.
CID: 1294249
src/lib/elm_color_class.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_color_class.c
b/src/lib/elm_color_class.c
index
d26a530
..
0014d7e
100644
(file)
--- a/
src/lib/elm_color_class.c
+++ b/
src/lib/elm_color_class.c
@@
-604,6
+604,7
@@
_dbus_send_cc(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Me
_colorclass_cc_update(cc, 0);
_colorclass_cc_update(cc, 1);
_colorclass_cc_update(cc, 2);
+ free(ecc);
return eldbus_message_method_return_new(msg);
}
else