From e06a0b3d1019602f1ca72fbd594ee56a9a535e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 18 Nov 2014 22:16:38 +0100 Subject: [PATCH] mir: release a connection on error --- cogl/winsys/cogl-winsys-egl-mir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cogl/winsys/cogl-winsys-egl-mir.c b/cogl/winsys/cogl-winsys-egl-mir.c index 26861a4d5..4edad379d 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; } }