projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
202b3ad
)
evas: reuse buffer instead of leaking it.
author
Cedric Bail
<cedric.bail@free.fr>
Sat, 3 May 2014 22:18:55 +0000
(
00:18
+0200)
committer
Cedric Bail
<cedric.bail@free.fr>
Sat, 3 May 2014 22:18:55 +0000
(
00:18
+0200)
CID 1210816
src/lib/evas/filters/evas_filter_parser.c
patch
|
blob
|
history
diff --git
a/src/lib/evas/filters/evas_filter_parser.c
b/src/lib/evas/filters/evas_filter_parser.c
index
423337e
..
a445824
100644
(file)
--- a/
src/lib/evas/filters/evas_filter_parser.c
+++ b/
src/lib/evas/filters/evas_filter_parser.c
@@
-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] == '/')