From: a bellenir Date: Sat, 26 Jul 2014 02:28:55 +0000 (+0000) Subject: DO need retain. X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c27a72a8670aa7dad28c4151d62398774d208d2c;p=archive%2Fafm.git DO need retain. --- diff --git a/source/workdir.c b/source/workdir.c index 1f58124..3ae88e0 100644 --- a/source/workdir.c +++ b/source/workdir.c @@ -28,6 +28,7 @@ WorkDir_T* workdir_new(char* path){ WorkDir_T* wd = mem_allocate(sizeof(WorkDir_T), &workdir_free); wd->idx = 0; wd->path = path; + mem_retain(wd->path); wd->vfiles = vec_new(0); workdir_ls(wd); wd->top_index = 0;