http://bugs.winehq.org/show_bug.cgi?id=31503
Jan Boysen jan@lugfl.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |5923e32ef1b10f741e20d2feba1 | |a1a60d67fa6b7
--- Comment #1 from Jan Boysen jan@lugfl.de 2012-09-10 06:00:46 CDT --- I did some regression testing now and tracked the crash back to 5923e32ef1b10f741e20d2feba1a1a60d67fa6b7
The causing part is the folowing added HeapFree(). Commenting the line solves the crash for me, so maybe an additional check on the data structure is needed before freeing it.
@@ -215,6 +216,7 @@ BOOL WINAPI wglDeleteContext(HGLRC hglrc) } if (hglrc == NtCurrentTeb()->glCurrentRC) wglMakeCurrent( 0, 0 ); ptr->funcs->wgl.p_wglDeleteContext( ptr->u.context->drv_ctx ); + HeapFree( GetProcessHeap(), 0, ptr->u.context->extensions ); HeapFree( GetProcessHeap(), 0, ptr->u.context ); free_handle_ptr( ptr ); return TRUE;