Simplify and refactor a release pattern.
--- 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);