diff options
author | Emil Velikov <[email protected]> | 2014-05-08 19:09:39 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-05-10 02:09:02 +0100 |
commit | 42770ff94ea8a30de51d4887611fc94bf271cde4 (patch) | |
tree | 336cccd362a9c194792ffe3539ac76a2489c3353 /src/gallium/winsys | |
parent | 326b8e253e5ee2e09e54ad46d8370a6e8c8d46da (diff) |
ilo: destroy the mutex, if winsys creation fails
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-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; |