Index: dlls/ddraw/main.c =================================================================== RCS file: /home/wine/wine/dlls/ddraw/main.c,v retrieving revision 1.31 diff -u -r1.31 main.c --- dlls/ddraw/main.c 15 Mar 2003 00:12:43 -0000 1.31 +++ dlls/ddraw/main.c 2 Apr 2003 22:17:16 -0000 @@ -388,8 +388,10 @@ TRACE("(%p)->() decrementing from %ld.\n", This, This->ref); - if (--This->ref == 0) + if (--This->ref == 0) { HeapFree(GetProcessHeap(), 0, This); + return 0; + } return This->ref; }