On 27/01/11 16:52, Jonny Lamb wrote:
The “and, erm … I own an M-16 fully-automatic ground assault rifle”
release.

This release introduced an accidental glib 2.28 dependency, despite configure still checking for 2.26.

The attached patch has been committed to master to change the few places which used functions from glib 2.28. If you're packaging 0.13.11 on a platform without glib 2.28, you'll need to include this patch.

Regards,
--
Will
>From 1d636ae877f84cf82caac6bd3ae10f4216f651b1 Mon Sep 17 00:00:00 2001
From: Will Thompson <[email protected]>
Date: Fri, 28 Jan 2011 12:00:16 +0000
Subject: [PATCH] Remove accidental GLib 2.28 dependency.

g_simple_async_result_take_error() and g_list_free_full() were added in
GLib 2.28, which we don't claim to depend on.
---
 telepathy-glib/contact-search-result.c |    5 ++---
 telepathy-glib/contact-search.c        |   12 ++++++++----
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/telepathy-glib/contact-search-result.c b/telepathy-glib/contact-search-result.c
index a47e7ee..b542faa 100644
--- a/telepathy-glib/contact-search-result.c
+++ b/telepathy-glib/contact-search-result.c
@@ -134,9 +134,8 @@ tp_contact_search_result_dispose (GObject *object)
 
   tp_clear_pointer (&self->priv->identifier, g_free);
 
-  g_list_free_full (self->priv->fields,
-      (GDestroyNotify) tp_contact_info_field_free);
-  self->priv->fields = NULL;
+  g_list_foreach (self->priv->fields, (GFunc) tp_contact_info_field_free, NULL);
+  tp_clear_pointer (&self->priv->fields, g_list_free);
 
   G_OBJECT_CLASS (tp_contact_search_result_parent_class)->dispose (object);
 }
diff --git a/telepathy-glib/contact-search.c b/telepathy-glib/contact-search.c
index 1f9ba35..f9b9515 100644
--- a/telepathy-glib/contact-search.c
+++ b/telepathy-glib/contact-search.c
@@ -181,7 +181,8 @@ _search_results_received (TpChannel *channel,
   DEBUG ("SearchResultsReceived (%i results)", g_hash_table_size (result));
   g_signal_emit (object, _signals[SEARCH_RESULTS_RECEIVED], 0, results);
 
-  g_list_free_full (results, g_object_unref);
+  g_list_foreach (results, (GFunc) g_object_unref, NULL);
+  g_list_free (results);
 }
 
 static void
@@ -209,7 +210,8 @@ _create_search_channel_cb (GObject *source_object,
   if (error != NULL)
     {
       DEBUG ("Failed to create search channel: %s", error->message);
-      g_simple_async_result_take_error (self->priv->async_res, error);
+      g_simple_async_result_set_from_error (self->priv->async_res, error);
+      g_error_free (error);
       goto out;
     }
 
@@ -222,7 +224,8 @@ _create_search_channel_cb (GObject *source_object,
     {
       DEBUG ("Failed to connect SearchResultReceived: %s", error->message);
       close_search_channel (self);
-      g_simple_async_result_take_error (self->priv->async_res, error);
+      g_simple_async_result_set_from_error (self->priv->async_res, error);
+      g_error_free (error);
       goto out;
     }
 
@@ -233,7 +236,8 @@ _create_search_channel_cb (GObject *source_object,
     {
       DEBUG ("Failed to connect SearchStateChanged: %s", error->message);
       close_search_channel (self);
-      g_simple_async_result_take_error (self->priv->async_res, error);
+      g_simple_async_result_set_from_error (self->priv->async_res, error);
+      g_error_free (error);
       goto out;
     }
 
-- 
1.7.2.3

_______________________________________________
telepathy mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/telepathy

Reply via email to