Created attachment 695 [details] Fixes the crash after displayed headers editing Steps to reproduce: 1. Configuration -> Preferences... -> Message View -> Text Options. 2. Press 'Edit...' 3. Drag 'From' somewhere, drop. 4. Drag 'From' back to the place it was on. 5. Press 'Cancel' There's some problem with the row_changed signal - in some situations iterating through the tree model returns the same pointer more than once, that leads to double-free when closing the window. Looks as if there's an intermediate state during row_changed signal: the dragged element exists in both old and new places. The proposed patch moves the code from row_changed handler to drag_end(). With this patch, Claws Mail no more crashes in the given case.
Changes related to this bug have been committed. Please check latest CVS and update the bug accordingly. You can also get the patch from: http://www.colino.net/claws-mail/ 2009-07-10 [colin] 3.7.2cvs6 * src/prefs_display_header.c Fix bug 1951, 'C-Mail dumps core when editing displayed headers'. Patch by Alexey Rusakov
Thank you.