]> Git Repo - qemu.git/blobdiff - qemu-char.c
tcg-ppc64: Use automatic implementation of ext32u_i64
[qemu.git] / qemu-char.c
index eae17fc61cc6c8080c810a0f8e4ffc2e2dd7b436..90cc1d6fbea5af388d08617db5a4123287687a30 100644 (file)
@@ -663,6 +663,7 @@ static guint io_add_watch_poll(GIOChannel *channel,
                                gpointer user_data)
 {
     IOWatchPoll *iwp;
+    int tag;
 
     iwp = (IOWatchPoll *) g_source_new(&io_watch_poll_funcs, sizeof(IOWatchPoll));
     iwp->fd_can_read = fd_can_read;
@@ -671,7 +672,9 @@ static guint io_add_watch_poll(GIOChannel *channel,
     iwp->fd_read = (GSourceFunc) fd_read;
     iwp->src = NULL;
 
-    return g_source_attach(&iwp->parent, NULL);
+    tag = g_source_attach(&iwp->parent, NULL);
+    g_source_unref(&iwp->parent);
+    return tag;
 }
 
 #ifndef _WIN32
This page took 0.021381 seconds and 4 git commands to generate.