This is patch:

[#17974] two small fix for blender 2.48 (memory leak and uninitalized vars)
Submitted By:
Pavel Nemec (nemecp) 

(changes delete to [] and sets to vars to NULL)

Kent
This commit is contained in:
Kent Mein
2009-03-16 17:02:19 +00:00
parent 7d2703c805
commit 28f6d223d0
2 changed files with 5 additions and 1 deletions

View File

@@ -246,7 +246,7 @@ static void get_filename(int argc, char **argv, char *filename)
if (BLI_exists(gamefile))
BLI_strncpy(filename, gamefile, FILE_MAXDIR + FILE_MAXFILE);
delete gamefile;
delete [] gamefile;
}
#else