summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/state_trackers/nine/iunknown.h3
1 files changed, 1 insertions, 2 deletions
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;