From: Axel Davy Date: Sat, 3 Dec 2016 17:46:26 +0000 (+0100) Subject: st/nine: Fix NineUnknown_Detach X-Git-Tag: upstream/17.1.0~3734 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14875ebd83fe746fc8c42496c385cc261e495dd2;p=platform%2Fupstream%2Fmesa.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 d357aad..dd1dab9 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;