elm: Backport 81538
authorJihoon Kim <imfine98@gmail.com>
Fri, 21 Dec 2012 11:09:57 +0000 (11:09 +0000)
committerJihoon Kim <imfine98@gmail.com>
Fri, 21 Dec 2012 11:09:57 +0000 (11:09 +0000)
SVN revision: 81539

ChangeLog
NEWS
src/lib/elm_entry.c

index eff9238a99dbfde6588f46217a59e133baf70727..c3cb056492c958d63d1a8fb5976859b108c0f25a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2012-12-21  Stefan Schmidt
 
        * Fix small memory leak in elm_map error path.
+
+2012-12-21  Jihoon Kim
+
+       * Fix memory leak in _item_tag_remove of elm_entry.
diff --git a/NEWS b/NEWS
index cd37463f04af542dd4072783cbd7188c688c7b43..9654723b6ccaa9f1f69517d05cf971af7a7baaa6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Fixes:
    * Fix Don't elm_transit image animation use the image preloading to avoid image flickering.
    * Fix the image to show the image right now if the image preloading is disabled.
    * Fix small memory leak in elm_map error path
+   * Fix memory leak in _item_tag_remove of elm_entry.
 
 
 Elementary 1.7.3
index 7b5faa155d3b0f8b7ec92634484681a231605f4d..b09ec94f153f2eb9c0d9071a50e81b7d6875b136 100644 (file)
@@ -1208,7 +1208,10 @@ _remove_item_tags(const char *str)
      return NULL;
 
    if (!eina_strbuf_append(buf, str))
-     return NULL;
+     {
+        eina_strbuf_free(buf);
+        return NULL;
+     }
 
    while (EINA_TRUE)
      {