[balsa/gtk3] Fix mem leak on NULL main widget
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Fix mem leak on NULL main widget
- Date: Mon, 16 Jul 2012 01:51:51 +0000 (UTC)
commit 02046ca63a0d6fe0cbc747f6c485cf1cd2cb7b0f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 15 20:01:37 2012 -0400
Fix mem leak on NULL main widget
* src/information-dialog.c (balsa_information_real): fix mem
leak on NULL main widget.
ChangeLog | 5 +++++
src/information-dialog.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8bf286b..beda49e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-07-15 Albrecht DreÃ
+ * src/information-dialog.c (balsa_information_real): fix mem
+ leak on NULL main widget.
+
+2012-07-15 Albrecht DreÃ
+
* src/folder-conf.c (folder_conf_imap_sub_node): fix mem leak
on error.
diff --git a/src/information-dialog.c b/src/information-dialog.c
index 2dc6302..2a3865e 100644
--- a/src/information-dialog.c
+++ b/src/information-dialog.c
@@ -70,11 +70,12 @@ balsa_information_real(GtkWindow *parent, LibBalsaInformationType type,
const char *msg)
{
BalsaInformationShow show;
- gchar * show_msg = g_strdup(msg);
+ gchar *show_msg;
if (!balsa_app.main_window)
return;
+ show_msg = g_strdup(msg);
libbalsa_utf8_sanitize(&show_msg, balsa_app.convert_unknown_8bit, NULL);
switch (type) {
case LIBBALSA_INFORMATION_MESSAGE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]