summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}