Commit 61799fe0 authored by Michael Gratton's avatar Michael Gratton 🤞 Committed by Michael Gratton

Make ComposerWidget implement BaseInterface to track refcounting

parent a08cecad
......@@ -13,7 +13,7 @@ private errordomain AttachmentError {
// The actual widget for sending messages. Should be put in a ComposerContainer
[GtkTemplate (ui = "/org/gnome/Geary/composer-widget.ui")]
public class ComposerWidget : Gtk.EventBox {
public class ComposerWidget : Gtk.EventBox, Geary.BaseInterface {
public enum ComposeType {
......@@ -397,6 +397,7 @@ public class ComposerWidget : Gtk.EventBox {
ContactListStoreCache contact_list_store_cache,
ComposeType compose_type,
Configuration config) {
base_ref();
this.account = account;
this.contact_list_store_cache = contact_list_store_cache;
this.config = config;
......@@ -525,6 +526,10 @@ public class ComposerWidget : Gtk.EventBox {
load_entry_completions();
}
~ComposerWidget() {
base_unref();
}
public override void destroy() {
this.draft_timer.reset();
if (this.draft_manager_opening != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment