mir: release a connection on error

This commit is contained in:
Marco Trevisan (Treviño) 2014-11-18 22:16:38 +01:00
parent b26466ad54
commit e06a0b3d10

View File

@ -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;
}
}