wined3d: Remove an unnecessary NULL check.

This commit is contained in:
Stefan Dösinger 2006-05-23 23:45:21 +02:00 committed by Alexandre Julliard
parent 78b7286eba
commit 89ca7fffd4

View file

@ -2357,7 +2357,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
LEAVE_GL();
if(!(This->Flags & SFLAG_DONOTFREE)) {
if(This->resource.allocatedMemory) HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory);
HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory);
This->resource.allocatedMemory = NULL;
} else {
This->Flags |= SFLAG_GLDIRTY;