[balsa/gtk3] Do not leak option-handling resources
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Do not leak option-handling resources
- Date: Sun, 18 Dec 2011 01:51:31 +0000 (UTC)
commit 4141bcfdee5680c55da1a4dc28b20f995d015715
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat Dec 17 20:50:51 2011 -0500
Do not leak option-handling resources
* src/main.c (handle_remote): do not leak option-handling
resources.
ChangeLog | 5 +++++
src/main.c | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e4ca124..4074e7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-12-17 Peter Bloomfield
+ * src/main.c (handle_remote): do not leak option-handling
+ resources.
+
+2011-12-17 Peter Bloomfield
+
* src/main-window.c: build --without-nm; thanks to Jack
<URL:http://mail.gnome.org/archives/balsa-list/2011-December/msg00013.html>.
diff --git a/src/main.c b/src/main.c
index 2fd7a33..73ffc3f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -795,11 +795,16 @@ handle_remote(int argc, char **argv,
snd);
else
sendmsg_window_set_field(snd, "to", opt_compose_email);
+ g_free(opt_compose_email);
+ opt_compose_email = NULL;
}
- if (opt_attach_list)
+ if (opt_attach_list) {
for (attach = opt_attach_list; *attach; ++attach)
add_attachment(snd, *attach, FALSE, NULL);
+ g_strfreev(opt_attach_list);
+ opt_attach_list = NULL;
+ }
snd->quit_on_close = FALSE;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]