[Spice-commits] 2 commits - gtk/spice-pulse.c gtk/spice-session.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Tue Jul 12 03:41:27 PDT 2011


 gtk/spice-pulse.c   |    6 +++---
 gtk/spice-session.c |    4 ----
 2 files changed, 3 insertions(+), 7 deletions(-)

New commits:
commit 57893d35b0137986f2479ccfade245b6b7f17113
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Tue Jul 12 12:40:13 2011 +0200

    gtk: remove double symbol definition

diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index bf41e41..7270ab7 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -147,10 +147,6 @@ enum {
 
 static guint signals[SPICE_SESSION_LAST_SIGNAL];
 
-GQuark spice_client_error_quark(void)
-{
-    return g_quark_from_static_string("spice-client-error-quark");
-}
 
 static void spice_session_init(SpiceSession *session)
 {
commit 7e608c638b01541619ebdb275f200bef056d0af0
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Tue Jul 12 12:39:49 2011 +0200

    gtk/pulse: fix memory leak

diff --git a/gtk/spice-pulse.c b/gtk/spice-pulse.c
index 0483273..5c9fd4c 100644
--- a/gtk/spice-pulse.c
+++ b/gtk/spice-pulse.c
@@ -794,7 +794,7 @@ SpicePulse *spice_pulse_new(SpiceSession *session, GMainContext *context,
 {
     SpicePulse *pulse;
     spice_pulse *p;
-    GList *list;
+    GList *list, *tmp;
 
     pulse = g_object_new(SPICE_TYPE_PULSE, NULL);
     p = SPICE_PULSE_GET_PRIVATE(pulse);
@@ -803,8 +803,8 @@ SpicePulse *spice_pulse_new(SpiceSession *session, GMainContext *context,
     g_signal_connect(session, "channel-new",
                      G_CALLBACK(channel_new), pulse);
     list = spice_session_get_channels(session);
-    for (list = g_list_first(list); list != NULL; list = g_list_next(list)) {
-        channel_new(session, list->data, (gpointer)pulse);
+    for (tmp = g_list_first(list); tmp != NULL; tmp = g_list_next(tmp)) {
+        channel_new(session, tmp->data, (gpointer)pulse);
     }
     g_list_free(list);
 


More information about the Spice-commits mailing list