wined3d: Avoid XFree on NULL in CheckDeviceType.

This commit is contained in:
Jan Zerebecki 2006-11-23 19:58:13 +01:00 committed by Alexandre Julliard
parent 3d6ffee021
commit 1075367493

View File

@ -1597,7 +1597,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceType(IWineD3D *iface, UINT Adapter
break ;
}
}
XFree(cfgs);
if(cfgs) XFree(cfgs);
WineD3D_ReleaseFakeGLContext(ctx);
}