[PATCH 1/1] wined3d: Release the context on an error path in buffer_PreLoad().

Henri Verbeet hverbeet at codeweavers.com
Thu Jun 3 04:25:53 CDT 2010


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

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index daece20..7c898cd 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1000,7 +1000,7 @@ static void STDMETHODCALLTYPE buffer_PreLoad(IWineD3DBuffer *iface)
         if(!buffer_add_dirty_area(This, 0, 0))
         {
             ERR("buffer_add_dirty_area failed, this is not expected\n");
-            return;
+            goto end;
         }
         /* Avoid unfenced updates, we might overwrite more areas of the buffer than the application
          * cleared for unsynchronized updates
-- 
1.6.4.4




More information about the wine-patches mailing list