[evolution] Bug 733724 - Paste of a text can produce runtime warning "Gtk-CRITICAL **: gtk_targets_include_uri:



commit 1a9fc0f57478ed1149292ca1a7b5ed9b56d1a276
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Jul 31 12:02:31 2014 +0200

    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.

 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 3e8df99..75aa108 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. */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]