From: Axel Davy Date: Sat, 24 Jan 2015 22:33:07 +0000 (+0100) Subject: st/nine: fix early basetexture destruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c61f6344a93e2bddb1984dcc735b8bc587c5db9;p=mesa.git st/nine: fix early basetexture destruction Reviewed-by: Tiziano Bacocco Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c index 5134de24e23..8d183e65d46 100644 --- a/src/gallium/state_trackers/nine/basetexture9.c +++ b/src/gallium/state_trackers/nine/basetexture9.c @@ -85,7 +85,8 @@ NineBaseTexture9_dtor( struct NineBaseTexture9 *This ) pipe_sampler_view_reference(&This->view[0], NULL); pipe_sampler_view_reference(&This->view[1], NULL); - list_del(&This->list), + if (This->list.prev != NULL && This->list.next != NULL) + list_del(&This->list), NineResource9_dtor(&This->base); }