modest_window_class->zoom_plus_func = modest_msg_edit_window_zoom_plus;
modest_window_class->zoom_minus_func = modest_msg_edit_window_zoom_minus;
modest_window_class->show_toolbar_func = modest_msg_edit_window_show_toolbar;
+ modest_window_class->save_state_func = save_state;
g_type_class_add_private (gobject_class, sizeof(ModestMsgEditWindowPrivate));
- modest_window_class->save_state_func = save_state;
+
}
static void
priv->system_clipboard_change_handler_id = 0;
}
+ if (priv->draft_msg != NULL) {
+ g_object_unref (priv->draft_msg);
+ priv->draft_msg = NULL;
+ }
+
/* This had to stay alive for as long as the combobox that used it: */
modest_pair_list_free (priv->from_field_protos);
update_dimmed (self);
text_buffer_can_undo (priv->text_buffer, FALSE, self);
- priv->draft_msg = msg;
+ priv->draft_msg = g_object_ref(msg);
}
static void
priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE(window);
priv->sent = sent;
}
+
+