rbug: remove contexts from the list properly
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
f921131a5c
commit
4a3f156dd1
1 changed files with 3 additions and 1 deletions
|
|
@ -40,10 +40,12 @@
|
|||
static void
|
||||
rbug_destroy(struct pipe_context *_pipe)
|
||||
{
|
||||
struct rbug_screen *rb_screen = rbug_screen(_pipe->screen);
|
||||
struct rbug_context *rb_pipe = rbug_context(_pipe);
|
||||
struct pipe_context *pipe = rb_pipe->pipe;
|
||||
|
||||
remove_from_list(&rb_pipe->list);
|
||||
rbug_screen_remove_from_list(rb_screen, contexts, rb_pipe);
|
||||
|
||||
pipe_mutex_lock(rb_pipe->call_mutex);
|
||||
pipe->destroy(pipe);
|
||||
rb_pipe->pipe = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue