[Xquartz-changes] [286] AppleSGLX/trunk/apple_glx_drawable.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 5 02:35:53 PST 2009


Revision: 286
          http://trac.macosforge.org/projects/xquartz/changeset/286
Author:   gstaplin at apple.com
Date:     2009-03-05 02:35:52 -0800 (Thu, 05 Mar 2009)
Log Message:
-----------
Simplify and refactor a release pattern.

Modified Paths:
--------------
    AppleSGLX/trunk/apple_glx_drawable.c

Modified: AppleSGLX/trunk/apple_glx_drawable.c
===================================================================
--- AppleSGLX/trunk/apple_glx_drawable.c	2009-03-05 10:29:58 UTC (rev 285)
+++ AppleSGLX/trunk/apple_glx_drawable.c	2009-03-05 10:35:52 UTC (rev 286)
@@ -460,9 +460,7 @@
 	     * release it, and call destroy_drawable which doesn't destroy
 	     * if the reference_count is > 0.
 	     */	      
-	    d->lock(d);
-	    d->reference_count--;
-	    d->unlock(d);
+	    d->release(d);
 
 	    apple_glx_diagnostic("%s d->reference_count %d\n", 
 				 __func__, d->reference_count);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090305/b19b8b79/attachment.html>


More information about the Xquartz-changes mailing list