janitorial: Remove two fresh redundant NULL checks before HeapFree(). Found by Smatch.
This commit is contained in:
parent
cfd561f605
commit
a5fdea0e6a
|
@ -1753,7 +1753,6 @@ HRESULT WINAPI SHPathPrepareForWriteW(HWND hwnd, IUnknown *modless, LPCWSTR path
|
|||
/* check if we can access the directory */
|
||||
res = GetFileAttributesW(realpath);
|
||||
|
||||
if (temppath)
|
||||
HeapFree(GetProcessHeap(), 0, temppath);
|
||||
|
||||
if (res == INVALID_FILE_ATTRIBUTES)
|
||||
|
|
|
@ -796,7 +796,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED
|
|||
checkGLcall("glBindBufferARB");
|
||||
|
||||
/* We don't need the system memory anymore and we can't even use it for PBOs */
|
||||
if(This->resource.allocatedMemory) HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory);
|
||||
HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory);
|
||||
This->resource.allocatedMemory = NULL;
|
||||
This->Flags |= SFLAG_PBO;
|
||||
LEAVE_GL();
|
||||
|
|
Loading…
Reference in New Issue