aboutsummaryrefslogtreecommitdiffstats
path: root/smime/gui/certificate-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'smime/gui/certificate-manager.c')
-rw-r--r--smime/gui/certificate-manager.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c
index ac42e1d5ad..f8a3a1b118 100644
--- a/smime/gui/certificate-manager.c
+++ b/smime/gui/certificate-manager.c
@@ -461,6 +461,9 @@ find_cert_cb (GtkTreeModel *model,
fcd->path = gtk_tree_path_copy (path);
}
+ if (cert)
+ g_object_unref (cert);
+
return fcd->path != NULL;
}
@@ -515,6 +518,7 @@ view_cert (GtkWidget *button,
dialog, "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
+ g_object_unref (cert);
}
}
}
@@ -569,6 +573,7 @@ edit_cert (GtkWidget *button,
}
gtk_widget_destroy (dialog);
+ g_object_unref (cert);
}
}
}
@@ -671,6 +676,8 @@ delete_cert (GtkWidget *button,
* and added it to the tree */
g_object_unref (cert);
g_object_unref (cert);
+ } else if (cert) {
+ g_object_unref (cert);
}
}