Mercurial > pidgin.yaz
changeset 8128:9aafd344230d
[gaim-migrate @ 8833]
Fix a crashbug. Thanks deryni.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 17 Jan 2004 07:10:20 +0000 |
parents | 96ee7b21c1ae |
children | 52cdf2740654 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat Jan 17 06:22:51 2004 +0000 +++ b/src/gtkimhtml.c Sat Jan 17 07:10:20 2004 +0000 @@ -438,6 +438,10 @@ if (selection_data->length < 0) { text = gtk_clipboard_wait_for_text(clipboard); + + if (text == NULL) + return; + } else { text = g_malloc((selection_data->format / 8) * selection_data->length); memcpy(text, selection_data->data, selection_data->length * (selection_data->format / 8));