[broadway] Keep track of the GSocketConnection for the output

This commit is contained in:
Alexander Larsson
2010-11-24 21:48:12 +01:00
parent f407b4a5f5
commit fcce2986ce
2 changed files with 3 additions and 3 deletions

View File

@@ -458,9 +458,8 @@ start_output (HttpRequest *request)
display_broadway->output = broadway_output_new (fd);
_gdk_broadway_resync_windows ();
/* TODO: This leaks the connection since we just keep the fd,
we want to avoid using the fd at all here */
g_object_ref (request->connection);
/* Keep connection alive */
display_broadway->output_connection = g_object_ref (request->connection);
http_request_free (request);
}

View File

@@ -81,6 +81,7 @@ struct _GdkDisplayBroadway
GSocketService *service;
BroadwayOutput *output;
GSocketConnection *output_connection;
};
struct _GdkDisplayBroadwayClass