diff options
author | Axel Davy <[email protected]> | 2015-01-24 23:33:07 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:18 +0100 |
commit | 5c61f6344a93e2bddb1984dcc735b8bc587c5db9 (patch) | |
tree | 8834f60c199894257f80a784061fc0d3e3e7fde3 /src/gallium/state_trackers/nine/basetexture9.c | |
parent | dfeca90419ac50e0776a3fdb102a2975c8075391 (diff) |
st/nine: fix early basetexture destruction
Reviewed-by: Tiziano Bacocco <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/basetexture9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/basetexture9.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |