diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-03-19 15:46:35 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-03-19 15:46:35 (GMT) |
commit | 572d3247c4fe2860be051549e82c680e021a7dea (patch) | |
tree | 88eb94930cb6b21253f1109fa93bc755dcbab482 /shell | |
parent | 02084085a9d7db89486e167abe859906b6df2005 (diff) |
Check pointer != NULL before using it. Fixes bug #416841.
2007-03-19 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_primary_get_cb):
Check pointer != NULL before using it. Fixes bug #416841.
svn path=/trunk/; revision=2382
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c index 99f0741..a7641f8 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -4743,8 +4743,10 @@ ev_view_primary_get_cb (GtkClipboard *clipboard, } text = get_selected_text (ev_view); - gtk_selection_data_set_text (selection_data, text, -1); - g_free (text); + if (text) { + gtk_selection_data_set_text (selection_data, text, -1); + g_free (text); + } } static void |