Henri Verbeet : wined3d: Release the context on an error path in buffer_PreLoad().
Alexandre Julliard
julliard at winehq.org
Mon Jun 7 10:02:17 CDT 2010
Module: wine
Branch: master
Commit: 64e2525ba0e7b7cc38c4f48c7787498ae38d18e0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=64e2525ba0e7b7cc38c4f48c7787498ae38d18e0
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jun 3 11:25:53 2010 +0200
wined3d: Release the context on an error path in buffer_PreLoad().
---
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
More information about the wine-cvs
mailing list