balsa r8052 - in trunk: . libbalsa src
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r8052 - in trunk: . libbalsa src
- Date: Sat, 17 Jan 2009 02:51:55 +0000 (UTC)
Author: PeterB
Date: Sat Jan 17 02:51:55 2009
New Revision: 8052
URL: http://svn.gnome.org/viewvc/balsa?rev=8052&view=rev
Log:
plug leaks
Modified:
trunk/ChangeLog
trunk/libbalsa/misc.c
trunk/src/balsa-icons.c
trunk/src/save-restore.c
trunk/src/sendmsg-window.c
Modified: trunk/libbalsa/misc.c
==============================================================================
--- trunk/libbalsa/misc.c (original)
+++ trunk/libbalsa/misc.c Sat Jan 17 02:51:55 2009
@@ -488,8 +488,8 @@
LibBalsaCodeset ret = sanitize_fallback_codeset;
#if defined(HAVE_GMIME_2_2_7)
const gchar *charsets[] = {
- g_strdup("UTF-8"),
- g_strdup(libbalsa_get_codeset_name(NULL, codeset)),
+ "UTF-8",
+ libbalsa_get_codeset_name(NULL, codeset),
NULL
};
Modified: trunk/src/balsa-icons.c
==============================================================================
--- trunk/src/balsa-icons.c (original)
+++ trunk/src/balsa-icons.c Sat Jan 17 02:51:55 2009
@@ -153,6 +153,7 @@
gtk_icon_source_set_size(icon_source, bpixmap->sizes[n]);
gtk_icon_source_set_size_wildcarded(icon_source, FALSE);
gtk_icon_set_add_source(icon_set, icon_source);
+ gtk_icon_source_free(icon_source);
}
} else
BICONS_ERR("bad size %d", bpixmap->sizes[n]);
Modified: trunk/src/save-restore.c
==============================================================================
--- trunk/src/save-restore.c (original)
+++ trunk/src/save-restore.c Sat Jan 17 02:51:55 2009
@@ -22,6 +22,7 @@
#define _XOPEN_SOURCE 500
+#include <stdlib.h>
#include <string.h>
#include <gconf/gconf-client.h>
#include <glib/gi18n.h>
Modified: trunk/src/sendmsg-window.c
==============================================================================
--- trunk/src/sendmsg-window.c (original)
+++ trunk/src/sendmsg-window.c Sat Jan 17 02:51:55 2009
@@ -900,10 +900,8 @@
static gint
delete_handler(BalsaSendmsg * bsmsg)
{
- InternetAddressList *l =
- libbalsa_address_view_get_list(bsmsg->recipient_view, "To:");
- const gchar *tmp = l && l->address && l->address->name ?
- l->address->name : _("(No name)");
+ InternetAddressList *l;
+ const gchar *tmp;
gint reply;
GtkWidget *d;
@@ -913,6 +911,10 @@
if (bsmsg->state == SENDMSG_STATE_CLEAN)
return FALSE;
+ l = libbalsa_address_view_get_list(bsmsg->recipient_view, "To:");
+ tmp = l && l->address && l->address->name ?
+ l->address->name : _("(No name)");
+
d = gtk_message_dialog_new(GTK_WINDOW(bsmsg->window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
@@ -6900,6 +6902,8 @@
list = libbalsa_address_view_get_list(bsmsg->recipient_view, "To:");
to_string = internet_address_list_to_string(list, FALSE);
+ internet_address_list_destroy(list);
+
title = g_strdup_printf(title_format, to_string,
gtk_entry_get_text(GTK_ENTRY(bsmsg->subject[1])));
g_free(to_string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]