diff options
Diffstat (limited to 'eo_tokenizer.rl')
-rw-r--r-- | eo_tokenizer.rl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index b10218d..3bab355 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -76,7 +76,7 @@ Eina_Bool eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source) { INF("tokenize %s...", source); - toknz->source = source; + toknz->source = eina_stringshare_add(source); FILE *stream; @@ -160,6 +160,9 @@ eo_tokenizer_get() void eo_tokenizer_free(Eo_Tokenizer *toknz) { + if (toknz->source) + eina_stringshare_del(toknz->source); + free(toknz); } |