diff --git a/tools/quake3/common/vfs.c b/tools/quake3/common/vfs.c index be6c1b44..1d949053 100644 --- a/tools/quake3/common/vfs.c +++ b/tools/quake3/common/vfs.c @@ -271,8 +271,8 @@ void vfsInitDirectory( const char *path ){ vfsInitPakFile(filename); } - g_free(name); dirlist = g_slist_remove(cur, name); + g_free(name); } g_dir_close( dir ); }