diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-31 18:02:31 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-31 18:02:31 +0800 |
commit | 1a9fc0f57478ed1149292ca1a7b5ed9b56d1a276 (patch) | |
tree | bd8c4ae4d4a54db1df640f10ca4dfe36dac27f13 | |
parent | 4f19e51bc5bb7d91ffa49297c5092dfe9f1be170 (diff) | |
download | gsoc2013-evolution-1a9fc0f57478ed1149292ca1a7b5ed9b56d1a276.tar.gz gsoc2013-evolution-1a9fc0f57478ed1149292ca1a7b5ed9b56d1a276.tar.zst gsoc2013-evolution-1a9fc0f57478ed1149292ca1a7b5ed9b56d1a276.zip |
Bug 733724 - Paste of a text can produce runtime warning "Gtk-CRITICAL **: gtk_targets_include_uri: assertion 'targets != NULL || n_targets == 0' failed"
Check if the returned targets and their count is valid before passing them
further.
-rw-r--r-- | composer/e-msg-composer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 3e8df99914..75aa108678 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1715,6 +1715,9 @@ msg_composer_paste_clipboard_targets_cb (GtkClipboard *clipboard, editor = e_msg_composer_get_editor (composer); view = e_html_editor_get_view (editor); + if (targets == NULL || n_targets < 0) + return; + /* Order is important here to ensure common use cases are * handled correctly. See GNOME bug #603715 for details. */ |