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

@@ -366,6 +366,10 @@ get_perm_c(int ispec, SuperMatrix *A, int *perm_c)
int *b_rowind, *dhead, *qsize, *llist, *marker;
double t, SuperLU_timer_();
/* make gcc happy */
b_rowind=NULL;
b_colptr=NULL;
m = A->nrow;
n = A->ncol;

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