aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing/e-contact-print-style-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/printing/e-contact-print-style-editor.c')
-rw-r--r--addressbook/printing/e-contact-print-style-editor.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/printing/e-contact-print-style-editor.c b/addressbook/printing/e-contact-print-style-editor.c
index 9267fc0c99..436aaddff0 100644
--- a/addressbook/printing/e-contact-print-style-editor.c
+++ b/addressbook/printing/e-contact-print-style-editor.c
@@ -111,7 +111,13 @@ void
e_contact_print_style_editor_destroy (GtkObject *object)
{
EContactPrintStyleEditor *e_contact_print_style_editor = E_CONTACT_PRINT_STYLE_EDITOR(object);
- g_object_unref(e_contact_print_style_editor->gui);
+
+ if (e_contact_print_style_editor->gui != NULL) {
+ g_object_unref(e_contact_print_style_editor->gui);
+ e_contact_print_style_editor->gui = NULL;
+ }
+
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
GtkWidget*