dinput: Fix memory leak.
This commit is contained in:
parent
30e2fbcb6e
commit
b223b021a5
|
@ -286,6 +286,7 @@ static ULONG WINAPI SysKeyboardAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
|
||||||
HeapFree(GetProcessHeap(), 0, This->base.data_queue);
|
HeapFree(GetProcessHeap(), 0, This->base.data_queue);
|
||||||
|
|
||||||
/* Free data format */
|
/* Free data format */
|
||||||
|
HeapFree(GetProcessHeap(), 0, (LPVOID)This->base.data_format.wine_df->rgodf);
|
||||||
HeapFree(GetProcessHeap(), 0, (LPVOID)This->base.data_format.wine_df);
|
HeapFree(GetProcessHeap(), 0, (LPVOID)This->base.data_format.wine_df);
|
||||||
release_DataFormat(&This->base.data_format);
|
release_DataFormat(&This->base.data_format);
|
||||||
|
|
||||||
|
|
|
@ -273,6 +273,7 @@ static ULONG WINAPI SysMouseAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
|
||||||
HeapFree(GetProcessHeap(), 0, This->base.data_queue);
|
HeapFree(GetProcessHeap(), 0, This->base.data_queue);
|
||||||
|
|
||||||
/* Free data format */
|
/* Free data format */
|
||||||
|
HeapFree(GetProcessHeap(), 0, (LPVOID)This->base.data_format.wine_df->rgodf);
|
||||||
HeapFree(GetProcessHeap(), 0, (LPVOID)This->base.data_format.wine_df);
|
HeapFree(GetProcessHeap(), 0, (LPVOID)This->base.data_format.wine_df);
|
||||||
release_DataFormat(&This->base.data_format);
|
release_DataFormat(&This->base.data_format);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue