From 859c8b5a8fae36bdb615f35f792c8256d4c8f97e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 15 Dec 2009 11:12:41 +0100 Subject: Bug #603342 - Memory leak fixes --- mail/em-format-html-display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/em-format-html-display.c') diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index f2f001e23a..95197077f6 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -193,7 +193,7 @@ efhd_xpkcs7mime_viewcert_clicked (GtkWidget *button, ECert *ec = NULL; if (info->cert_data) - ec = e_cert_new (info->cert_data); + ec = e_cert_new (CERT_DupCertificate (info->cert_data)); if (ec != NULL) { GtkWidget *w = certificate_viewer_show(ec); @@ -251,7 +251,7 @@ efhd_xpkcs7mime_add_cert_table (GtkWidget *vbox, g_signal_connect(w, "clicked", G_CALLBACK(efhd_xpkcs7mime_viewcert_clicked), po); if (info->cert_data) - ec = e_cert_new (info->cert_data); + ec = e_cert_new (CERT_DupCertificate (info->cert_data)); if (ec == NULL) gtk_widget_set_sensitive(w, FALSE); -- cgit