]> git.mdlowis.com Git - archive/afm.git/commitdiff
DO need retain.
authora bellenir <a@bellenir.com>
Sat, 26 Jul 2014 02:28:55 +0000 (02:28 +0000)
committera bellenir <a@bellenir.com>
Sat, 26 Jul 2014 02:28:55 +0000 (02:28 +0000)
source/workdir.c

index 1f5812483628151d6aeefbe0ca7db13b26f1cae8..3ae88e0adc80638d18575848c5d0a02feb87bb7c 100644 (file)
@@ -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;