Mercurial > pidgin.yaz
changeset 8148:c06b233aa84d
[gaim-migrate @ 8859]
thanks for pointing this out, Mohammed Sameer (msameer)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 20 Jan 2004 13:15:14 +0000 |
parents | 0d3e75a09f15 |
children | eb2a420060f8 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Tue Jan 20 04:35:37 2004 +0000 +++ b/src/gtkimhtml.c Tue Jan 20 13:15:14 2004 +0000 @@ -382,6 +382,7 @@ if (info == TARGET_HTML) { + char *selection; int len; GString *str = g_string_new(NULL); text = gtk_imhtml_get_markup_range(imhtml, &start, &end); @@ -390,7 +391,7 @@ str = g_string_append_unichar(str, 0xfeff); str = g_string_append(str, text); str = g_string_append_unichar(str, 0x0000); - char *selection = g_convert(str->str, str->len, "UCS-2", "UTF-8", NULL, &len, NULL); + selection = g_convert(str->str, str->len, "UCS-2", "UTF-8", NULL, &len, NULL); gtk_selection_data_set (selection_data, gdk_atom_intern("text/html", FALSE), 16, selection, len); g_string_free(str, TRUE); g_free(selection);