diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-20 07:52:12 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-20 07:52:12 +0000 |
commit | 672e05e8660eb93b5f9621dfdc6799a48ea1d754 (patch) | |
tree | 5fc01d35b1395eee8a9a1ed594f5b61e4215afa4 /src/compose.c | |
parent | b085bd01d91e348765d7f5af93da17179de3b4ac (diff) |
fixed crash with GTK+ 2.10.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1172 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compose.c b/src/compose.c index 78cd461d..42bf2083 100644 --- a/src/compose.c +++ b/src/compose.c @@ -5139,6 +5139,8 @@ static void compose_destroy(Compose *compose) GtkTreeIter iter; gboolean valid; AttachInfo *ainfo; + GtkTextBuffer *buffer; + GtkClipboard *clipboard; compose_list = g_list_remove(compose_list, compose); @@ -5200,6 +5202,10 @@ static void compose_destroy(Compose *compose) gtk_widget_destroy(compose->paned); gtk_widget_destroy(compose->popupmenu); + buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(compose->text)); + clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY); + gtk_text_buffer_remove_selection_clipboard(buffer, clipboard); + gtk_widget_destroy(compose->window); g_free(compose); |