Evas textblock: Fixed a memory leak.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 31 Jul 2011 08:09:02 +0000 (08:09 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 31 Jul 2011 08:09:02 +0000 (08:09 +0000)
Thanks to discomfitor for the report.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61925 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index fa8eb36..f2c97f9 100644 (file)
@@ -4978,6 +4978,7 @@ evas_object_textblock_text_markup_prepend(Evas_Textblock_Cursor *cur, const char
                             memcpy(ttag, tag_start + 1, ttag_len);
                             ttag[ttag_len] = 0;
                             evas_textblock_cursor_format_prepend(cur, ttag);
+                            free(ttag);
                          }
                        tag_start = tag_end = NULL;
                     }