diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-11-18 22:16:38 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-11-18 22:16:38 +0100 |
commit | e06a0b3d1019602f1ca72fbd594ee56a9a535e05 (patch) | |
tree | 14e0ac0821c1a1f28549a67226ee432da00bdc24 | |
parent | b26466ad546c508c3bcc31e8a598afa1f73254c7 (diff) |
mir: release a connection on error
-rw-r--r-- | cogl/winsys/cogl-winsys-egl-mir.c | 1 |
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; } } |