mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
Revert "st/dri: Fix dangling pointer to a destroyed dri_drawable"
This reverts commitdab02dea34. It causes crashes of qtcreator and firefox. Fixes:dab02de"st/dri: Fix dangling pointer to a destroyed dri_drawable" Cc: 18.0 18.1 <mesa-stable@lists.freedesktop.org> (cherry picked from commit4559aefb5c)
This commit is contained in:
parent
ead5bf4f6a
commit
6bd2fba19d
1 changed files with 0 additions and 4 deletions
|
|
@ -185,7 +185,6 @@ fail:
|
|||
void
|
||||
dri_destroy_buffer(__DRIdrawable * dPriv)
|
||||
{
|
||||
struct dri_context *ctx = dri_context(dPriv->driContextPriv);
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
struct dri_screen *screen = drawable->screen;
|
||||
struct st_api *stapi = screen->st_api;
|
||||
|
|
@ -203,9 +202,6 @@ dri_destroy_buffer(__DRIdrawable * dPriv)
|
|||
/* Notify the st manager that this drawable is no longer valid */
|
||||
stapi->destroy_drawable(stapi, &drawable->base);
|
||||
|
||||
if (ctx && ctx->dPriv == dPriv)
|
||||
ctx->dPriv = NULL;
|
||||
|
||||
FREE(drawable);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue