I no could tell where original function came from.  It was add to 
tex.c from ???
It crash for me with free memory already free.
So this fix it.

Also, I find that lots physfs routines that use copy, use uninit 
variables, but no seem to be problem?


Index: tex.c
===================================================================
--- tex.c       (revision 1494)
+++ tex.c       (working copy)
@@ -264,7 +264,7 @@
 
 void iV_unloadImage(iV_Image *image)
 {
-       if (image)
+       if (image->bmp)
        {
                free(image->bmp);
                image->bmp = NULL;

--
Click here for self-employed health insurance.  Compare quotes for free!
http://tagline.hushmail.com/fc/CAaCXv1Kdvfj7biueNfJQi0ByYa4h7mK/



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

Reply via email to