diff options
author | Milan Crha <mcrha@redhat.com> | 2012-05-31 16:44:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-05-31 16:44:49 +0800 |
commit | 71924fc48776c642fe8520febc384250cf55973c (patch) | |
tree | 6b2f1738675f111dfb664805f82ad27add135715 /smime | |
parent | c88d3170304e1892b221d0581a3cd3c767de4281 (diff) | |
download | gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.gz gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.zst gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.zip |
Fix memory leaks around gtk_tree_model_get() function
Diffstat (limited to 'smime')
-rw-r--r-- | smime/gui/certificate-manager.c | 7 |
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); } } |