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