balsa r8093 - in trunk: . libbalsa src
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r8093 - in trunk: . libbalsa src
- Date: Tue, 3 Mar 2009 13:56:19 +0000 (UTC)
Author: PeterB
Date: Tue Mar 3 13:56:19 2009
New Revision: 8093
URL: http://svn.gnome.org/viewvc/balsa?rev=8093&view=rev
Log:
plug leaks and clean up
Modified:
trunk/ChangeLog
trunk/libbalsa/identity.c
trunk/src/balsa-icons.c
trunk/src/balsa-mime-widget-text.c
Modified: trunk/libbalsa/identity.c
==============================================================================
--- trunk/libbalsa/identity.c (original)
+++ trunk/libbalsa/identity.c Tue Mar 3 13:56:19 2009
@@ -1500,6 +1500,7 @@
id->warn_send_plain = ident_dialog_get_bool(dlg, "identity-warn-send-plain");
id->crypt_protocol = GPOINTER_TO_INT(ident_dialog_get_value
(dlg, "identity-crypt-protocol"));
+ g_free(id->force_key_id);
id->force_key_id = g_strstrip(ident_dialog_get_text(dlg, "identity-keyid"));
#endif
Modified: trunk/src/balsa-icons.c
==============================================================================
--- trunk/src/balsa-icons.c (original)
+++ trunk/src/balsa-icons.c Tue Mar 3 13:56:19 2009
@@ -161,6 +161,7 @@
}
gtk_icon_factory_add(factory, bpixmap->name, icon_set);
+ gtk_icon_set_unref(icon_set);
}
void
Modified: trunk/src/balsa-mime-widget-text.c
==============================================================================
--- trunk/src/balsa-mime-widget-text.c (original)
+++ trunk/src/balsa-mime-widget-text.c Tue Mar 3 13:56:19 2009
@@ -180,8 +180,10 @@
if(g_ascii_strcasecmp(content_type, "text/x-vcard") == 0 ||
g_ascii_strcasecmp(content_type, "text/directory") == 0) {
mw = bm_widget_new_vcard(bm, mime_body, ptr, alloced);
- if (mw)
+ if (mw) {
+ g_free(ptr);
return mw;
+ }
/* else it was not a vCard with at least one address; we'll just
* show it as if it were text/plain. */
}
@@ -1294,6 +1296,5 @@
g_object_set_data(G_OBJECT(mw->widget), "mime-body", mime_body);
gtk_widget_show_all(mw->widget);
- g_free(ptr);
return mw;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]