# HG changeset patch # User Nathan Walp # Date 1074604514 0 # Node ID c06b233aa84d0a8878ada973621ed6a3351d950e # Parent 0d3e75a09f1505a2e8a5feff0459cdec7b8e1ed1 [gaim-migrate @ 8859] thanks for pointing this out, Mohammed Sameer (msameer) committer: Tailor Script diff -r 0d3e75a09f15 -r c06b233aa84d src/gtkimhtml.c --- 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);