Sebastian Lackner : wined3d: Add a missing call to context_release.
Alexandre Julliard
julliard at winehq.org
Wed Feb 15 16:06:23 CST 2017
Module: wine
Branch: master
Commit: f9c6488394a53fbac160c613a61215d15068542d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9c6488394a53fbac160c613a61215d15068542d
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Tue Feb 14 23:15:30 2017 +0100
wined3d: Add a missing call to context_release.
Spotted by Michael Müller.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 37cb819..a7ee5bc 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4138,6 +4138,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;
}
More information about the wine-cvs
mailing list