summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2013-01-09 11:56:57 +0000
committerShinwoo Kim <kimcinoo.efl@gmail.com>2013-01-09 11:56:57 +0000
commitdcf9743ca1a2d48e65ee22871260f1ef3856ddb7 (patch)
tree132222e3a02b289ea2f058ff95e5543b7fbddf06
parent63e83533bf537257666eb7038dcb13f2a99bf52e (diff)
downloadelementary-dcf9743ca1a2d48e65ee22871260f1ef3856ddb7.tar.gz
[colorselector] remove resource leak possibility
SVN revision: 82456
-rw-r--r--src/lib/elm_colorselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c
index b3e673e03..3142896e8 100644
--- a/src/lib/elm_colorselector.c
+++ b/src/lib/elm_colorselector.c
@@ -1312,7 +1312,6 @@ _access_info_cb(void *data, Evas_Object *obj __UNUSED__)
{
char *ret;
Eina_Strbuf *buf;
- buf = eina_strbuf_new();
int r = 0, g = 0, b = 0 ,a = 0;
Elm_Color_Item *it = data;
@@ -1320,6 +1319,7 @@ _access_info_cb(void *data, Evas_Object *obj __UNUSED__)
elm_colorselector_palette_item_color_get((Elm_Object_Item *)it, &r, &g, &b, &a);
+ buf = eina_strbuf_new();
eina_strbuf_append_printf(buf, "red %d, green %d, blue %d, alpha %d", r, g, b, a);
ret = eina_strbuf_string_steal(buf);
eina_strbuf_free(buf);