[Commits] mimeview.c 1.83.2.174 1.83.2.175

colin at claws-mail.org colin at claws-mail.org
Tue Oct 25 07:41:34 CEST 2011


Update of /home/claws-mail/claws/src
In directory claws-mail:/tmp/cvs-serv22789/src

Modified Files:
      Tag: gtk2
	mimeview.c 
Log Message:
2011-10-25 [colin]	3.7.10cvs47

	* src/mimeview.c
		Fix bug #2529, 'crash in mimeview_start_drag after
		deleting message'. Patch by Ricardo

Index: mimeview.c
===================================================================
RCS file: /home/claws-mail/claws/src/mimeview.c,v
retrieving revision 1.83.2.174
retrieving revision 1.83.2.175
diff -u -d -r1.83.2.174 -r1.83.2.175
--- mimeview.c	22 Oct 2011 17:09:03 -0000	1.83.2.174
+++ mimeview.c	25 Oct 2011 05:41:32 -0000	1.83.2.175
@@ -1290,7 +1290,9 @@
 	cm_return_if_fail(mimeview != NULL);
 
 	partinfo = mimeview_get_selected_part(mimeview);
-	if (partinfo->disposition == DISPOSITIONTYPE_INLINE) return;
+	if (partinfo == NULL || 
+	    partinfo->disposition == DISPOSITIONTYPE_INLINE)
+		return;
 
 	context = gtk_drag_begin(widget, mimeview->target_list,
 				 GDK_ACTION_COPY, button, event);



More information about the Commits mailing list