syntax_color - free memory as soon as possible.

This commit is contained in:
ChunEon Park 2014-05-21 21:15:06 +09:00
parent 0128690266
commit 4120f2c75c
1 changed files with 2 additions and 2 deletions

View File

@ -639,8 +639,6 @@ color_apply(color_data *cd, const char *src, int length)
if (!src || (length < 1)) return NULL;
macro_keys_free(cd);
Eina_Strbuf *strbuf = cd->cachebuf;
eina_strbuf_reset(strbuf);
@ -740,6 +738,8 @@ finished:
str = eina_strbuf_string_get(strbuf);
}
macro_keys_free(cd);
return str;
}