From 107536749368fb9dcb678d8cf721a15a83515130 Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Thu, 23 Nov 2006 19:58:13 +0100 Subject: [PATCH] wined3d: Avoid XFree on NULL in CheckDeviceType. --- dlls/wined3d/directx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 1184e64f52..59cf1b050b 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1597,7 +1597,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceType(IWineD3D *iface, UINT Adapter break ; } } - XFree(cfgs); + if(cfgs) XFree(cfgs); WineD3D_ReleaseFakeGLContext(ctx); }