summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/telepathy-mission-control/files/telepathy-mission-control-4.51-fix-segfault.patch')
-rw-r--r--net-im/telepathy-mission-control/files/telepathy-mission-control-4.51-fix-segfault.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-im/telepathy-mission-control/files/telepathy-mission-control-4.51-fix-segfault.patch b/net-im/telepathy-mission-control/files/telepathy-mission-control-4.51-fix-segfault.patch
new file mode 100644
index 000000000000..ab4e62a1f56b
--- /dev/null
+++ b/net-im/telepathy-mission-control/files/telepathy-mission-control-4.51-fix-segfault.patch
@@ -0,0 +1,29 @@
+http://sourceforge.net/tracker/index.php?func=detail&aid=1849202&group_id=190214&atid=932444
+--- src/mcd-connection.c.orig 2007-12-29 16:16:33.000000000 +0100
++++ src/mcd-connection.c 2007-12-29 16:18:41.000000000 +0100
+@@ -662,6 +662,7 @@
+ pending_channel_free (McdPendingChannel *pc)
+ {
+ g_object_unref (pc->channel);
++ g_free (pc->type);
+ g_free (pc);
+ }
+
+@@ -2186,7 +2187,7 @@
+ pc = g_malloc (sizeof(McdPendingChannel));
+ pc->handle = chan_handle;
+ pc->handle_type = chan_handle_type;
+- pc->type = chan_type;
++ pc->type = g_strdup(chan_type);
+ pc->channel = channel;
+ priv->pending_channels = g_list_prepend (priv->pending_channels, pc);
+
+@@ -2234,7 +2235,7 @@
+ pc = g_malloc (sizeof(McdPendingChannel));
+ pc->handle = req->channel_handle;
+ pc->handle_type = req->channel_handle_type;
+- pc->type = req->channel_type;
++ pc->type = g_strdup(req->channel_type);
+ pc->channel = channel;
+ priv->pending_channels = g_list_prepend (priv->pending_channels, pc);
+