16 Nov
2008
16 Nov
'08
5:14 p.m.
2008/11/15 Tony Wasserka <tony.wasserka(a)freenet.de>:
+ if(This->sprites) { + int i; + for(i=0;i<This->sprite_count;i++) + if(This->sprites[i].texture) This if should be redundant. I looked at some of the other sprite code, and noticed you've got similar constructions in other places. You also don't handle HeapAlloc/HeapReAlloc failures in most places.
+ HeapFree(GetProcessHeap(), 0, This->sprites); Why do you free the sprites array here?