mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 02:47:20 +00:00
d3drm: Avoid using pointer value after free.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
This commit is contained in:
parent
164a4070db
commit
902a894900
|
@ -210,8 +210,8 @@ static inline struct d3drm *impl_from_IDirect3DRM3(IDirect3DRM3 *iface)
|
||||||
|
|
||||||
static void d3drm_destroy(struct d3drm *d3drm)
|
static void d3drm_destroy(struct d3drm *d3drm)
|
||||||
{
|
{
|
||||||
heap_free(d3drm);
|
|
||||||
TRACE("d3drm object %p is being destroyed.\n", d3drm);
|
TRACE("d3drm object %p is being destroyed.\n", d3drm);
|
||||||
|
heap_free(d3drm);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI d3drm1_QueryInterface(IDirect3DRM *iface, REFIID riid, void **out)
|
static HRESULT WINAPI d3drm1_QueryInterface(IDirect3DRM *iface, REFIID riid, void **out)
|
||||||
|
|
Loading…
Reference in a new issue