elm_color_class: Avoid resource leak
authorStefan Schmidt <s.schmidt@samsung.com>
Thu, 16 Apr 2015 14:05:02 +0000 (16:05 +0200)
committerStefan 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

legacy/elementary/src/lib/elm_color_class.c

index d26a530..0014d7e 100644 (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