[Spice-devel] [PATCH spice-gtk 3/4] gio-coroutine: Remove only assigned self field

Frediano Ziglio fziglio at redhat.com
Fri Apr 13 14:49:18 UTC 2018


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 src/gio-coroutine.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gio-coroutine.c b/src/gio-coroutine.c
index 86623c3..59ae06c 100644
--- a/src/gio-coroutine.c
+++ b/src/gio-coroutine.c
@@ -25,7 +25,6 @@
 typedef struct _GConditionWaitSource
 {
     GSource parent; // this MUST be the first field
-    GCoroutine *self;
     GConditionWaitFunc func;
     gpointer data;
 } GConditionWaitSource;
@@ -167,7 +166,6 @@ gboolean g_coroutine_condition_wait(GCoroutine *self, GConditionWaitFunc func, g
 
     vsrc->func = func;
     vsrc->data = data;
-    vsrc->self = self;
 
     self->condition_id = g_source_attach(src, NULL);
     g_source_set_callback(src, g_condition_wait_helper, self, NULL);
-- 
2.14.3



More information about the Spice-devel mailing list