align
This commit is contained in:
parent
be79bb8c8b
commit
dc93ff735f
18 changed files with 127 additions and 31 deletions
|
@ -25,6 +25,7 @@ HRESULT __stdcall IDirectDraw__QueryInterface(IDirectDrawImpl* This, REFIID riid
|
|||
|
||||
*obj = dd;
|
||||
IDirectDraw_AddRef(dd);
|
||||
|
||||
ret = S_OK;
|
||||
}
|
||||
else
|
||||
|
@ -57,6 +58,7 @@ ULONG __stdcall IDirectDraw__Release(IDirectDrawImpl* This)
|
|||
if (This->ref == 0)
|
||||
{
|
||||
dprintf(" Released (%p)\n", This);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,8 +29,10 @@ ULONG __stdcall IDirectDrawPalette__Release(IDirectDrawPaletteImpl* This)
|
|||
if (This->ref == 0)
|
||||
{
|
||||
dprintf(" Released (%p)\n", This);
|
||||
|
||||
if (g_ddraw)
|
||||
g_ddraw->last_freed_palette = This;
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,9 +48,13 @@ ULONG __stdcall IDirectDrawSurface__Release(IDirectDrawSurfaceImpl *This)
|
|||
}
|
||||
|
||||
if (This->bitmap)
|
||||
{
|
||||
DeleteObject(This->bitmap);
|
||||
}
|
||||
else if (This->surface)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, This->surface);
|
||||
}
|
||||
|
||||
if (This->hdc)
|
||||
DeleteDC(This->hdc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue