wined3d: Add a missing call to context_release.

Sebastian Lackner sebastian at fds-team.de
Tue Feb 14 16:15:30 CST 2017


Spotted by Michael Müller.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 dlls/wined3d/device.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index b4b1803d9b2..ef60f56edfa 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4104,6 +4104,7 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
         if (!wined3d_buffer_load_location(buffer, context, WINED3D_LOCATION_BUFFER))
         {
             ERR("Failed to load buffer location.\n");
+            context_release(context);
             return;
         }
 
-- 
2.11.0



More information about the wine-patches mailing list