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:
Magnus Olsen 2006-12-14 09:35:19 +00:00
parent 45000c2da2
commit f6dc17f3c0

View file

@ -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);
}