evas: reuse buffer instead of leaking it.

CID 1210816
This commit is contained in:
Cedric Bail 2014-05-04 00:18:55 +02:00
parent 202b3ad6ba
commit d590ad8041
1 changed files with 2 additions and 2 deletions

View File

@ -1894,9 +1894,9 @@ _lua_state_create(Evas_Filter_Program *pgm)
static char *
_legacy_strdup(const char *str)
{
Eina_Strbuf *dst;
static Eina_Strbuf *dst = NULL;
dst = eina_strbuf_new();
if (!dst) dst = eina_strbuf_new();
for (const char *ptr = str; ptr && *ptr; ptr++)
{
if (ptr[0] == '/' && ptr[1] == '/')