summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-11-18 22:16:38 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-11-18 22:16:38 +0100
commite06a0b3d1019602f1ca72fbd594ee56a9a535e05 (patch)
tree14e0ac0821c1a1f28549a67226ee432da00bdc24
parentb26466ad546c508c3bcc31e8a598afa1f73254c7 (diff)
mir: release a connection on error
-rw-r--r--cogl/winsys/cogl-winsys-egl-mir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/winsys/cogl-winsys-egl-mir.c b/cogl/winsys/cogl-winsys-egl-mir.c
index 26861a4d..4edad379 100644
--- a/cogl/winsys/cogl-winsys-egl-mir.c
+++ b/cogl/winsys/cogl-winsys-egl-mir.c
@@ -252,6 +252,7 @@ _cogl_winsys_renderer_connect (CoglRenderer *renderer,
COGL_WINSYS_ERROR_INIT,
"Failed to connect mir display: %s",
mir_connection_get_error_message (mir_renderer->mir_connection));
+ mir_connection_release (mir_renderer->mir_connection);
goto error;
}
}