wined3d: Avoid XFree on NULL in CheckDeviceType.

oldstable
Jan Zerebecki 2006-11-23 19:58:13 +01:00 committed by Alexandre Julliard
parent 3d6ffee021
commit 1075367493
1 changed files with 1 additions and 1 deletions

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