Fixed cleanup on some Mir errors.

Release was called on invalid handles.
This commit is contained in:
Camilla Berglund 2015-01-06 13:53:54 +01:00
parent ead3937394
commit 40f7d4fce0
2 changed files with 0 additions and 2 deletions

View File

@ -46,7 +46,6 @@ int _glfwPlatformInit(void)
"Mir: Unable to connect to server: %s",
mir_connection_get_error_message(_glfw.mir.connection));
mir_connection_release(_glfw.mir.connection);
return GL_FALSE;
}

View File

@ -410,7 +410,6 @@ static int createSurface(_GLFWwindow* window)
"Mir: Unable to create surface: %s",
mir_surface_get_error_message(window->mir.surface));
mir_surface_release_sync(window->mir.surface);
return GL_FALSE;
}