From 370a95a23d6475cffcb1a82a81ee65c683371853 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 22 Jul 2004 07:53:35 +0000 Subject: Fix mem leaks (ported from Galeon). 2004-07-22 Christian Persch * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: Fix mem leaks (ported from Galeon). --- ChangeLog | 7 +++++++ embed/mozilla/GtkNSSClientAuthDialogs.cpp | 1 + embed/mozilla/GtkNSSDialogs.cpp | 2 ++ 3 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7dae7fe32..cec5bc2b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-07-22 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + + Fix mem leaks (ported from Galeon). + 2004-07-21 Xan Lopez * data/epiphany.desktop.in: diff --git a/embed/mozilla/GtkNSSClientAuthDialogs.cpp b/embed/mozilla/GtkNSSClientAuthDialogs.cpp index b3196dd75..d2fb15fa4 100644 --- a/embed/mozilla/GtkNSSClientAuthDialogs.cpp +++ b/embed/mozilla/GtkNSSClientAuthDialogs.cpp @@ -221,6 +221,7 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx, } combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)); + g_object_unref (store); renderer = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, TRUE); diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp index ff50a641b..b133ba057 100644 --- a/embed/mozilla/GtkNSSDialogs.cpp +++ b/embed/mozilla/GtkNSSDialogs.cpp @@ -1221,6 +1221,7 @@ setup_view_cert_tree (GtkWidget *dialog, GladeXML*gxml, nsIArray *certChain) G_TYPE_STRING, G_TYPE_POINTER); gtk_tree_view_set_model (GTK_TREE_VIEW (chain_tree_view), GTK_TREE_MODEL (store)); + g_object_unref (store); renderer = gtk_cell_renderer_text_new (); @@ -1242,6 +1243,7 @@ setup_view_cert_tree (GtkWidget *dialog, GladeXML*gxml, nsIArray *certChain) G_TYPE_STRING, G_TYPE_POINTER); gtk_tree_view_set_model (GTK_TREE_VIEW (field_tree_view), GTK_TREE_MODEL (store)); + g_object_unref (store); gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (field_tree_view), -- cgit v1.2.3