PATCH: various part 3
- From: Ali Akcaagac <ali akcaagac stud fh-wilhelmshaven de>
- To: balsa-list gnome org
- Subject: PATCH: various part 3
- Date: Wed, 17 Oct 2001 23:01:43 +0200
does this hurt freeing some memory in
src/save-restore.c ?
--
Name....: Ali Akcaagac
Status..: Student Of Computer & Economic Science
E-Mail..: mailto:ali.akcaagac@stud.fh-wilhelmshaven.de
WWW.....: http://www.fh-wilhelmshaven.de/~akcaagaa
--- balsa-/src/save-restore.c Wed Oct 17 11:39:29 2001
+++ balsa/src/save-restore.c Wed Oct 17 22:55:12 2001
@@ -1,5 +1,4 @@
/* -*-mode:c; c-style:k&r; c-basic-offset:4; -*- */
-/* vim:set ts=4 sw=4 ai et: */
/* Balsa E-Mail Client
* Copyright (C) 1997-2001 Stuart Parmenter and others,
* See the file AUTHORS for a list.
@@ -311,13 +310,13 @@
{
gchar *key; /* the key in the mailbox section name */
gint res;
-
key = mailbox_section_path(mailbox);
res = gnome_config_has_section(key);
gnome_config_push_prefix(key);
libbalsa_mailbox_save_config(mailbox, key);
gnome_config_pop_prefix();
gnome_config_sync();
+ g_free(key);
return res;
} /* config_mailbox_update */
@@ -326,13 +325,13 @@
{
gchar *key; /* the key in the mailbox section name */
gint res;
-
key = folder_section_path(mbnode);
res = gnome_config_has_section(key);
gnome_config_push_prefix(key);
balsa_mailbox_node_save_config(mbnode, key);
gnome_config_pop_prefix();
gnome_config_sync();
+ g_free(key);
return res;
} /* config_folder_update */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]