[balsa/gtk3] Do not crash by passing unowned string
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Do not crash by passing unowned string
- Date: Thu, 7 Mar 2013 01:10:32 +0000 (UTC)
commit f4d4eddc1c5aca67ca18acae58a9d102cc4b0203
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Mar 6 20:09:51 2013 -0500
Do not crash by passing unowned string
* src/main.c (scan_mailboxes_idle_cb): do not pass unowned
string.
ChangeLog | 5 +++++
src/main.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d52398e..552aa99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-03-06 Peter Bloomfield
+ * src/main.c (scan_mailboxes_idle_cb): do not pass unowned
+ string.
+
+2013-03-06 Peter Bloomfield
+
Combine all mailboxes to be opened at startup into a single
array.
diff --git a/src/main.c b/src/main.c
index d156061..6843d65 100644
--- a/src/main.c
+++ b/src/main.c
@@ -428,7 +428,8 @@ scan_mailboxes_idle_cb()
if (balsa_app.remember_open_mboxes) {
if (balsa_app.current_mailbox_url)
- g_ptr_array_add(url_array, balsa_app.current_mailbox_url);
+ g_ptr_array_add(url_array,
+ g_strdup(balsa_app.current_mailbox_url));
balsa_add_open_mailbox_urls(url_array);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]