comparison src/gtkimhtml.c @ 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 0dc9fffb1e28
children c06b233aa84d
comparison
equal deleted inserted replaced
8127:96ee7b21c1ae 8128:9aafd344230d
436 if (!gtk_text_view_get_editable(GTK_TEXT_VIEW(imhtml))) 436 if (!gtk_text_view_get_editable(GTK_TEXT_VIEW(imhtml)))
437 return; 437 return;
438 438
439 if (selection_data->length < 0) { 439 if (selection_data->length < 0) {
440 text = gtk_clipboard_wait_for_text(clipboard); 440 text = gtk_clipboard_wait_for_text(clipboard);
441
442 if (text == NULL)
443 return;
444
441 } else { 445 } else {
442 text = g_malloc((selection_data->format / 8) * selection_data->length); 446 text = g_malloc((selection_data->format / 8) * selection_data->length);
443 memcpy(text, selection_data->data, selection_data->length * (selection_data->format / 8)); 447 memcpy(text, selection_data->data, selection_data->length * (selection_data->format / 8));
444 } 448 }
445 449