aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-18 22:06:15 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-19 03:09:34 +0800
commit91f13bff713e208272ad93d36c2faf0737cdd32c (patch)
tree198caa0ca033ff56658a8dfe00613558d3e14483 /libempathy
parent8a149be5cabca92862b84dff0642ee44ea16dfa3 (diff)
downloadgsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.tar
gsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.tar.gz
gsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.tar.bz2
gsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.tar.lz
gsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.tar.xz
gsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.tar.zst
gsoc2013-empathy-91f13bff713e208272ad93d36c2faf0737cdd32c.zip
tp-chat: copy the rename message
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 1bcf371c9..f1c455e04 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -950,7 +950,7 @@ typedef struct
{
TpHandle old_handle;
guint reason;
- const gchar *message;
+ gchar *message;
} ContactRenameData;
static ContactRenameData *
@@ -961,7 +961,7 @@ contact_rename_data_new (TpHandle handle,
ContactRenameData *data = g_new (ContactRenameData, 1);
data->old_handle = handle;
data->reason = reason;
- data->message = message;
+ data->message = g_strdup (message);
return data;
}
@@ -969,7 +969,8 @@ contact_rename_data_new (TpHandle handle,
static void
contact_rename_data_free (ContactRenameData* data)
{
- g_free (data);
+ g_free (data->message);
+ g_free (data);
}
static void