Commit 1a33c1b2 authored by Jeremy Huddleston Sequoia's avatar Jeremy Huddleston Sequoia
Browse files

darwin: Eliminate a pthread mutex leak

Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <>
Tested-by: default avatarCharles Davis <>
parent 2a311b18
......@@ -135,6 +135,7 @@ release_drawable(struct apple_glx_drawable *d)
static bool
destroy_drawable(struct apple_glx_drawable *d)
int err;
......@@ -172,6 +173,12 @@ destroy_drawable(struct apple_glx_drawable *d)
apple_glx_diagnostic("%s: freeing %p\n", __func__, (void *) d);
err = pthread_mutex_destroy(&d->mutex);
if (err) {
fprintf(stderr, "pthread_mutex_destroy error: %s\n", strerror(err));
/* So that the locks are balanced and the caller correctly unlocks. */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment