> >
> >    _______________________________________________________
> >
> >Reply to this item at:
> >
> >  <http://gna.org/bugs/?9237>
> >
> Index: strres.c
> ===================================================================
> --- strres.c  (revision 1410)
> +++ strres.c  (working copy)
> @@ -37,6 +37,8 @@
>  #include "strres.h"
>  #include "strresly.h"
>
> +
> +
>  /* The string resource currently being loaded */
>  STR_RES      *psCurrRes;
>
> @@ -387,8 +389,9 @@
>  /* Load a string resource file */
>  BOOL strresLoad(STR_RES* psRes, const char* fileName)  {
> +     PHYSFS_file *fileHandle = PHYSFS_openRead(fileName);
>       psCurrRes = psRes;
> -     PHYSFS_file* fileHandle = PHYSFS_openRead(fileName);
> +
>       if (!fileHandle)
>       {
>               debug(LOG_ERROR, "strresLoadFile:
> PHYSFS_openRead(\"%s\") failed
> with error: %s\n", fileName, PHYSFS_getLastError());
>
>
Vs2k5 -
Well, it compiles.. But now WZ 1410 crashes on start-up. - Memory leaks.



_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to