From: Axel Davy Date: Sat, 3 Dec 2016 17:46:26 +0000 (+0100) Subject: st/nine: Fix NineUnknown_Detach X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14875ebd83fe746fc8c42496c385cc261e495dd2;p=mesa.git st/nine: Fix NineUnknown_Detach We don't bind the container in AddRef. Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/iunknown.h b/src/gallium/state_trackers/nine/iunknown.h index d357aad9c6f..dd1dab9ab95 100644 --- a/src/gallium/state_trackers/nine/iunknown.h +++ b/src/gallium/state_trackers/nine/iunknown.h @@ -165,8 +165,7 @@ static inline void NineUnknown_Detach( struct NineUnknown *This ) { assert(This->container && !This->forward); - if (This->refs) - NineUnknown_Unbind(This->container); + if (This->bind) NineUnknown_Unbind(This->container); This->container = NULL;