Jan Zerebecki : wined3d: Avoid XFree on NULL in CheckDeviceType.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 5 04:50:57 CST 2006


Module: wine
Branch: master
Commit: 107536749368fb9dcb678d8cf721a15a83515130
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=107536749368fb9dcb678d8cf721a15a83515130

Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date:   Thu Nov 23 19:58:13 2006 +0100

wined3d: Avoid XFree on NULL in CheckDeviceType.

---

 dlls/wined3d/directx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 1184e64..59cf1b0 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1597,7 +1597,7 @@ static HRESULT WINAPI IWineD3DImpl_Check
               break ;
           }
       }
-      XFree(cfgs);
+      if(cfgs) XFree(cfgs);
       WineD3D_ReleaseFakeGLContext(ctx);
     }
 




More information about the wine-cvs mailing list