mir: release a connection on error
This commit is contained in:
parent
b26466ad54
commit
e06a0b3d10
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user