Changeset 15279
- Timestamp:
- 04/16/12 00:37:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/filelist.h
r15273 r15279 464 464 tmpstr = ostrcat(tmpstr, filename, 1, 0); 465 465 free(filename); filename = NULL; 466 child->filelist->imdbpath = tmpstr;467 466 debug(10, "imdbpath: %s", tmpstr); 468 // double free error, why ? 469 // free(tmpstr); tmpstr = NULL;467 //tmpstr is freed with imdbpath 468 child->filelist->imdbpath = tmpstr; 470 469 } 471 470 … … 570 569 debug(10, "files: change pic"); 571 570 if(cmpfilenameext(filelist[i]->d_name, ".jpg") == 0) 571 { 572 char* thumpfile = NULL; 573 if(status.createthump == 1) 574 { 575 //check if thump exists 576 char* tmpfile = ostrcat(createpath(node->input, "/"), tmpstr, 1, 0); 577 thumpfile = checkthump(tmpfile); 578 if(thumpfile != NULL) 579 { 580 free(tmpstr); 581 tmpstr = thumpfile; 582 } 583 free(tmpfile); tmpfile = NULL; 584 } 572 585 changepic(child, tmpstr); 573 else 574 changepicmem(child, tmpstr,pagecount + 1000); 586 } 575 587 free(tmpstr); tmpstr = NULL; 576 588 } … … 647 659 free(filename); filename = NULL; 648 660 debug(10, "imdbpath: %s", tmpstr); 661 //tmpstr is freed with imdbpath 649 662 child->filelist->imdbpath = tmpstr; 650 // double free error, why ?651 // free(tmpstr); tmpstr = NULL;652 663 } 653 664
Note: See TracChangeset
for help on using the changeset viewer.