diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2014-05-08 19:09:39 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2014-05-10 02:09:02 +0100 |
commit | 42770ff94ea8a30de51d4887611fc94bf271cde4 (patch) | |
tree | 336cccd362a9c194792ffe3539ac76a2489c3353 /src/gallium | |
parent | 326b8e253e5ee2e09e54ad46d8370a6e8c8d46da (diff) |
ilo: destroy the mutex, if winsys creation fails
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/winsys/intel/drm/intel_drm_winsys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c index d34246af9eb..00c4a46c214 100644 --- a/src/gallium/winsys/intel/drm/intel_drm_winsys.c +++ b/src/gallium/winsys/intel/drm/intel_drm_winsys.c @@ -181,6 +181,7 @@ intel_winsys_create_for_fd(int fd) pipe_mutex_init(winsys->mutex); if (!probe_winsys(winsys)) { + pipe_mutex_destroy(winsys->mutex); drm_intel_bufmgr_destroy(winsys->bufmgr); FREE(winsys); return NULL; |