summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-22 10:06:27 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-22 14:40:08 +0100
commita60894a1f1c1fba4d7244a9b2a52f322e3ed9e12 (patch)
tree0f66e9215336d5ea7e99acc374d9723565d9f4d0
parentded56de03870a3e66313ad7519c4994194dfb1f2 (diff)
downloadcmumble-a60894a1f1c1fba4d7244a9b2a52f322e3ed9e12.tar.gz
cmumble-a60894a1f1c1fba4d7244a9b2a52f322e3ed9e12.tar.bz2
cmumble-a60894a1f1c1fba4d7244a9b2a52f322e3ed9e12.zip
connection: Do not unref the input source after creation
It is done later in cmumble_connection_fini.
-rw-r--r--src/connection.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c
index 6e2cc98..0369ba1 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -48,7 +48,6 @@ connection_ready(GObject *source_object, GAsyncResult *res, gpointer user_data)
con->source = g_pollable_input_stream_create_source(con->input, NULL);
g_source_set_callback(con->source, (GSourceFunc) read_cb, cm, NULL);
g_source_attach(con->source, NULL);
- g_source_unref(con->source);
cmumble_protocol_init(cm);
}