elm_color_class: Avoid resource leak

We would leak ecc here when we return so we need to free it before.

CID: 1294249
This commit is contained in:
Stefan Schmidt 2015-04-16 16:05:02 +02:00
parent b89af4d017
commit 64f3a97cb6
1 changed files with 1 additions and 0 deletions

View File

@ -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