summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-12-03 18:46:26 +0100
committerAxel Davy <[email protected]>2016-12-20 23:47:08 +0100
commit14875ebd83fe746fc8c42496c385cc261e495dd2 (patch)
tree8321b884cd76a680df50c328f747f86cefa1680d
parent930f479acf07296b25806fc55a07bff6e307d5c6 (diff)
st/nine: Fix NineUnknown_Detach
We don't bind the container in AddRef. Signed-off-by: Axel Davy <[email protected]>
-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;