Ticket #271: gutil.C.diff
File gutil.C.diff, 633 bytes (added by , 17 years ago) |
---|
-
gutil.C
old new 487 487 if (stars) free(stars); 488 488 stars = (STAR*)calloc(sizeof(STAR), (long unsigned int)nstars); 489 489 490 if ( !stars ) { 490 491 for (i=0; i<nstars; i++) { 491 492 replace_star(i); 492 493 } 494 } 493 495 } 494 496 495 497 … … 718 720 jpeg_create_decompress(&cinfo); 719 721 jpeg_stdio_src(&cinfo, pFile); 720 722 pImageData = (tImageJPG*)malloc(sizeof(tImageJPG)); 723 if ( !pImageData ) { 724 jpeg_destroy_decompress(&cinfo); 725 fclose(pFile); 726 return NULL; 727 } 721 728 DecodeJPG(&cinfo, pImageData); 722 729 jpeg_destroy_decompress(&cinfo); 723 730 fclose(pFile);