diff options
-rw-r--r-- | src/bin/eolian/eo1_generator.c | 4 | ||||
-rw-r--r-- | src/bin/eolian/main.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index 1542f08ab5..478ddd9289 100644 --- a/src/bin/eolian/eo1_generator.c +++ b/src/bin/eolian/eo1_generator.c | |||
@@ -294,11 +294,13 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf) | |||
294 | eina_strbuf_replace_all(str_hdr, "@#list_subid", eina_strbuf_string_get(str_subid)); | 294 | eina_strbuf_replace_all(str_hdr, "@#list_subid", eina_strbuf_string_get(str_subid)); |
295 | eina_strbuf_append(str_hdr, eina_strbuf_string_get(str_ev)); | 295 | eina_strbuf_append(str_hdr, eina_strbuf_string_get(str_ev)); |
296 | 296 | ||
297 | eina_strbuf_append(buf, eina_strbuf_string_get(str_hdr)); | ||
298 | |||
297 | eina_strbuf_free(str_subid); | 299 | eina_strbuf_free(str_subid); |
298 | eina_strbuf_free(str_ev); | 300 | eina_strbuf_free(str_ev); |
299 | eina_strbuf_free(tmpbuf); | 301 | eina_strbuf_free(tmpbuf); |
302 | eina_strbuf_free(str_hdr); | ||
300 | 303 | ||
301 | eina_strbuf_append(buf, eina_strbuf_string_get(str_hdr)); | ||
302 | return EINA_TRUE; | 304 | return EINA_TRUE; |
303 | } | 305 | } |
304 | 306 | ||
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c index 4a294e4281..8b36f13765 100644 --- a/src/bin/eolian/main.c +++ b/src/bin/eolian/main.c | |||
@@ -27,7 +27,9 @@ _include_guard_enclose(const char *fname, const char *fbody) | |||
27 | incname); | 27 | incname); |
28 | eina_strbuf_replace_all(incguard, ".", "_"); | 28 | eina_strbuf_replace_all(incguard, ".", "_"); |
29 | eina_strbuf_replace_all(incguard, "_code_", fbody); | 29 | eina_strbuf_replace_all(incguard, "_code_", fbody); |
30 | return eina_strbuf_string_steal(incguard); | 30 | char *ret = eina_strbuf_string_steal(incguard); |
31 | eina_strbuf_free(incguard); | ||
32 | return ret; | ||
31 | } | 33 | } |
32 | 34 | ||
33 | static const char * | 35 | static const char * |