st/nine: Fix NineUnknown_Detach
authorAxel Davy <axel.davy@ens.fr>
Sat, 3 Dec 2016 17:46:26 +0000 (18:46 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:47:08 +0000 (23:47 +0100)
We don't bind the container in AddRef.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/iunknown.h

index d357aad9c6fe12b52cf4819b4770428bed0ac2fe..dd1dab9ab95ba0d7df44aa6e8d891202510788d7 100644 (file)
@@ -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;