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:
@@ -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
|
||||
|
Reference in New Issue
Block a user