i915: Fixed fence leak in intel_swapbuffers.c
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 8 Apr 2008 13:01:16 +0000 (15:01 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 8 Apr 2008 13:01:16 +0000 (15:01 +0200)
src/gallium/winsys/dri/intel/intel_swapbuffers.c

index 1a42389169d72a30cf423613dbb3e33b98e2b595..923b5427714f6039a83385a175d0ccf4b3467533 100644 (file)
@@ -180,7 +180,6 @@ intelDisplaySurface(__DRIdrawablePrivate *dPriv,
       if (intel->first_swap_fence)
         driFenceUnReference(&intel->first_swap_fence);
       intel->first_swap_fence = intel_batchbuffer_flush(intel->batch);
-      driFenceReference(intel->first_swap_fence);
    }
 
    UNLOCK_HARDWARE(intel);