]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
when loading a game, free "text" later
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Dec 2008 13:30:47 +0000 (13:30 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Dec 2008 13:30:47 +0000 (13:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8592 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index dabc5e22ae2a8233a5308a832afcf61bfe4fdd09..1192f8e0ff4c1c8a163c95593adecf16471a550a 100644 (file)
@@ -793,7 +793,6 @@ void Host_Loadgame_f (void)
                end = t;
                entnum++;
        }
-       Mem_Free(text);
 
        prog->num_edicts = entnum;
        sv.time = time;
@@ -862,6 +861,7 @@ void Host_Loadgame_f (void)
                        }
                }
        }
+       Mem_Free(text);
 
        if(developer_entityparsing.integer)
                Con_Printf("Host_Loadgame_f: finished\n");