From 713e609ecb0df1373edbca1f1a05dd838416599a Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 23 May 2000 18:34:42 +0000 Subject: Fixed some memory leaks. 2000-05-23 Christopher James Lahey * contact-editor/e-contact-save-as.c: Fixed some memory leaks. svn path=/trunk/; revision=3183 --- addressbook/contact-editor/e-contact-save-as.c | 3 +++ addressbook/gui/contact-editor/e-contact-save-as.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/addressbook/contact-editor/e-contact-save-as.c b/addressbook/contact-editor/e-contact-save-as.c index a8ce68a084..51cb2619e7 100644 --- a/addressbook/contact-editor/e-contact-save-as.c +++ b/addressbook/contact-editor/e-contact-save-as.c @@ -38,6 +38,7 @@ save_it(GtkWidget *widget, SaveAsInfo *info) g_free(vcard); gtk_object_unref(GTK_OBJECT(info->card)); gtk_widget_destroy(GTK_WIDGET(info->filesel)); + g_free(info); } static void @@ -45,12 +46,14 @@ close_it(GtkWidget *widget, SaveAsInfo *info) { gtk_object_unref(GTK_OBJECT(info->card)); gtk_widget_destroy(GTK_WIDGET(info->filesel)); + g_free(info); } static void delete_it(GtkWidget *widget, SaveAsInfo *info) { gtk_object_unref(GTK_OBJECT(info->card)); + g_free(info); } void diff --git a/addressbook/gui/contact-editor/e-contact-save-as.c b/addressbook/gui/contact-editor/e-contact-save-as.c index a8ce68a084..51cb2619e7 100644 --- a/addressbook/gui/contact-editor/e-contact-save-as.c +++ b/addressbook/gui/contact-editor/e-contact-save-as.c @@ -38,6 +38,7 @@ save_it(GtkWidget *widget, SaveAsInfo *info) g_free(vcard); gtk_object_unref(GTK_OBJECT(info->card)); gtk_widget_destroy(GTK_WIDGET(info->filesel)); + g_free(info); } static void @@ -45,12 +46,14 @@ close_it(GtkWidget *widget, SaveAsInfo *info) { gtk_object_unref(GTK_OBJECT(info->card)); gtk_widget_destroy(GTK_WIDGET(info->filesel)); + g_free(info); } static void delete_it(GtkWidget *widget, SaveAsInfo *info) { gtk_object_unref(GTK_OBJECT(info->card)); + g_free(info); } void -- cgit