From: Andrew C. <ac...@us...> - 2002-08-29 01:29:16
|
Update of /cvsroot/planeshift/planeshift/src/tools/texparse In directory usw-pr-cvs1:/tmp/cvs-serv11305/tools/texparse Modified Files: texparse.cpp Log Message: small fix for initializing pointers Index: texparse.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/tools/texparse/texparse.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** texparse.cpp 20 Aug 2002 21:07:40 -0000 1.1 --- texparse.cpp 29 Aug 2002 01:29:13 -0000 1.2 *************** *** 47,53 **** { loader = NULL; ! object_reg = NULL; ! ImageLoader = NULL; VFS = NULL; cmdOptions = 0; } --- 47,61 ---- { loader = NULL; ! object_reg = NULL; ! ImageLoader = NULL; VFS = NULL; + + colormask = NULL; + region = NULL; + outname = NULL; + filename = NULL; + race = NULL; + scanlines = NULL; + cmdOptions = 0; } *************** *** 56,60 **** { if(loader) loader->DecRef(); ! if(ImageLoader) ImageLoader->DecRef(); if(VFS) VFS->DecRef(); --- 64,68 ---- { if(loader) loader->DecRef(); ! if(ImageLoader) ImageLoader->DecRef(); if(VFS) VFS->DecRef(); *************** *** 63,67 **** if(outname) { delete [] outname; outname = NULL;} if(filename) { delete [] filename; filename = NULL;} ! if(race) { delete [] race; race = NULL;} if(scanlines) { delete [] scanlines; scanlines = NULL;} --- 71,75 ---- if(outname) { delete [] outname; outname = NULL;} if(filename) { delete [] filename; filename = NULL;} ! if(race) { delete [] race; race = NULL;} if(scanlines) { delete [] scanlines; scanlines = NULL;} |