From e06a0b3d1019602f1ca72fbd594ee56a9a535e05 Mon Sep 17 00:00:00 2001 From: "Marco Trevisan (TreviƱo)" Date: Tue, 18 Nov 2014 22:16:38 +0100 Subject: 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 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; } } -- cgit v1.2.3