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:
@@ -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;
|
||||
|
||||
|
@@ -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