Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_win32


Modified Files:
        ecore_win32_ddraw.c 


Log Message:
set to NULL the directdraw objects once they are relased

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_win32/ecore_win32_ddraw.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_win32_ddraw.c 26 Aug 2007 11:17:21 -0000      1.1
+++ ecore_win32_ddraw.c 28 Sep 2007 23:44:14 -0000      1.2
@@ -112,15 +112,24 @@
    w = (struct _Ecore_Win32_Window *)window;
 
    if (w->ddraw.surface_primary)
-     IDirectDrawSurface7_Release(w->ddraw.surface_primary);
+     {
+        IDirectDrawSurface7_Release(w->ddraw.surface_primary);
+        w->ddraw.surface_primary = NULL;
+     }
 
    /* no need to release the back surface. the previous call free its memory */
 
    if (w->ddraw.clipper)
-     IDirectDrawClipper_Release(w->ddraw.clipper);
+     {
+        IDirectDrawClipper_Release(w->ddraw.clipper);
+        w->ddraw.clipper = NULL;
+     }
 
    if (w->ddraw.object)
-     IDirectDraw7_Release(w->ddraw.object);
+     {
+        IDirectDraw7_Release(w->ddraw.object);
+        w->ddraw.object = NULL;
+     }
 #endif /* HAVE_DIRECTDRAW */
 }
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to