aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-reflow-adapter.c9
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c4
2 files changed, 13 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
index 7f99062144..7ece1aab8c 100644
--- a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
@@ -107,6 +107,14 @@ addressbook_dispose(GObject *object)
}
static void
+addressbook_finalize(GObject *object)
+{
+ EAddressbookReflowAdapter *adapter = E_ADDRESSBOOK_REFLOW_ADAPTER(object);
+
+ g_free (adapter->priv);
+}
+
+static void
addressbook_set_width (EReflowModel *erm, int width)
{
}
@@ -373,6 +381,7 @@ e_addressbook_reflow_adapter_class_init (GObjectClass *object_class)
object_class->set_property = addressbook_set_property;
object_class->get_property = addressbook_get_property;
object_class->dispose = addressbook_dispose;
+ object_class->finalize = addressbook_finalize;
g_object_class_install_property (object_class, PROP_BOOK,
g_param_spec_object ("book",
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 35decd7ee2..08710c71b5 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -326,6 +326,10 @@ e_addressbook_view_dispose (GObject *object)
EAddressbookView *eav = E_ADDRESSBOOK_VIEW(object);
if (eav->model) {
+ g_signal_handlers_disconnect_matched (eav->model,
+ G_SIGNAL_MATCH_DATA,
+ 0, 0, NULL, NULL,
+ object);
g_object_unref (eav->model);
eav->model = NULL;
}