mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
fixing the last problem with release of dd interface, hopply I do not forget to free any memory it alloc this time.
fixing proper shourtdown of dx. svn path=/trunk/; revision=25156
This commit is contained in:
parent
45000c2da2
commit
f6dc17f3c0
1 changed files with 7 additions and 5 deletions
|
@ -27,10 +27,10 @@ Cleanup(LPDIRECTDRAW7 iface)
|
|||
DxHeapMemFree(ddgbl.lpModeInfo);
|
||||
}
|
||||
|
||||
/* FIXME
|
||||
delete the DC we create
|
||||
delete the dx handler we got from hal
|
||||
any more I forget ?
|
||||
DdDeleteDirectDrawObject(&ddgbl);
|
||||
|
||||
/*
|
||||
are it any more I forget to release ?
|
||||
*/
|
||||
|
||||
/* release the linked interface */
|
||||
|
@ -39,15 +39,17 @@ Cleanup(LPDIRECTDRAW7 iface)
|
|||
LPDDRAWI_DIRECTDRAW_INT newThis = This->lpVtbl;
|
||||
if (This->lpLcl != NULL)
|
||||
{
|
||||
DeleteDC(This->lpLcl->hDC);
|
||||
DxHeapMemFree(This->lpLcl);
|
||||
}
|
||||
|
||||
|
||||
This = newThis;
|
||||
}
|
||||
|
||||
/* release unlinked interface */
|
||||
if (This->lpLcl != NULL)
|
||||
{
|
||||
DeleteDC(This->lpLcl->hDC);
|
||||
DxHeapMemFree(This->lpLcl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue