diff options
author | Michel Dänzer <[email protected]> | 2017-07-27 11:12:24 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2017-07-27 11:12:24 +0900 |
commit | 57132d126f2e129fc2959dcc2c0a8126389d07ba (patch) | |
tree | 6af19677d4280c9f3ae77feef99855c89a71c8bd /src/mesa/state_tracker/st_manager.c | |
parent | e77ff11ffe1a52b8e17a847f263746c849db3f11 (diff) |
st/mesa: Fix inversed test in st_api_destroy_drawable
Fixes a drawable leak.
Fixes: bbc29393d3be ("st/mesa: create framebuffer iface hash table per
st manager")
Bugzilla: https://bugs.freedesktop.org/101930
Tested-by: Nick Sarnie <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_manager.c')
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 6447403fc66..97bf89fc655 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -583,7 +583,7 @@ static void st_api_destroy_drawable(struct st_api *stapi, struct st_framebuffer_iface *stfbi) { - if (stfbi) + if (!stfbi) return; st_framebuffer_iface_remove(stfbi->state_manager, stfbi); |