st/xorg: free last fence
authorKeith Whitwell <keithw@vmware.com>
Fri, 27 Nov 2009 12:22:43 +0000 (12:22 +0000)
committerKeith Whitwell <keithw@vmware.com>
Fri, 27 Nov 2009 12:24:57 +0000 (12:24 +0000)
src/gallium/state_trackers/xorg/xorg_driver.c

index 4c66354ad450fa88b37d4a7c73107f59ef2c3847..129159129869d6a6177efb245c374f16b7ec7891 100644 (file)
@@ -466,6 +466,10 @@ static void drv_block_handler(int i, pointer blockData, pointer pTimeout,
           ms->screen->fence_reference(ms->screen,
                                       &ms->fence[j],
                                       ms->fence[j+1]);
+
+       ms->screen->fence_reference(ms->screen,
+                                   &ms->fence[XORG_NR_FENCES-1],
+                                   NULL);
     }