aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-14 16:04:21 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-14 16:04:21 +0800
commit2c7314e543cb6b8fce33e5818c9913cfb3e5507c (patch)
treec53b978574a3005bddc9c4e842cfd5871796f5f7 /src
parentde6239c432661f8b0061ad02db565b793b0fa746 (diff)
downloadgsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.tar
gsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.tar.gz
gsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.tar.bz2
gsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.tar.lz
gsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.tar.xz
gsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.tar.zst
gsoc2013-epiphany-2c7314e543cb6b8fce33e5818c9913cfb3e5507c.zip
Fix mem leaks.
2003-07-14 Christian Persch <chpe@cvs.gnome.org> * src/pdm-dialog.c: (pdm_dialog_remove_button_clicked_cb), (pdm_dialog_finalize): Fix mem leaks.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pdm-dialog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index cb6fad05c..ec2cd9dfc 100755
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -366,6 +366,7 @@ pdm_dialog_remove_button_clicked_cb (GtkWidget *button,
remove_list = g_list_append (remove_list, data);
gtk_tree_row_reference_free ((GtkTreeRowReference *)r->data);
+ gtk_tree_path_free (path);
}
if (remove_list)
@@ -584,7 +585,11 @@ pdm_dialog_finalize (GObject *object)
pdm_dialog_passwords_free (dialog->priv->passwords, NULL);
pdm_dialog_cookies_free (dialog->priv->cookies, NULL);
+ g_free (dialog->priv->passwords);
+ g_free (dialog->priv->cookies);
+
g_free (dialog->priv);
+ dialog->priv = NULL;
G_OBJECT_CLASS (parent_class)->finalize (object);
}