r20002 - gnucash/trunk/src/core-utils - Plug more memory leaks
Phil Longstaff
plongstaff at code.gnucash.org
Thu Dec 30 10:51:32 EST 2010
Author: plongstaff
Date: 2010-12-30 10:51:32 -0500 (Thu, 30 Dec 2010)
New Revision: 20002
Trac: http://svn.gnucash.org/trac/changeset/20002
Modified:
gnucash/trunk/src/core-utils/core-utils.i
gnucash/trunk/src/core-utils/gnc-gconf-utils.c
Log:
Plug more memory leaks
Modified: gnucash/trunk/src/core-utils/core-utils.i
===================================================================
--- gnucash/trunk/src/core-utils/core-utils.i 2010-12-30 14:00:49 UTC (rev 20001)
+++ gnucash/trunk/src/core-utils/core-utils.i 2010-12-30 15:51:32 UTC (rev 20002)
@@ -14,8 +14,12 @@
gboolean gnc_is_debugging(void);
+%newobject gnc_path_get_bindir;
gchar * gnc_path_get_bindir(void);
+
+%newobject gnc_path_get_stdreportsdir;
gchar * gnc_path_get_stdreportsdir(void);
+
gchar * gnc_build_dotgnucash_path(const gchar *);
gchar * gnc_build_report_path(const gchar *);
gchar * gnc_build_stdreports_path(const gchar *);
@@ -27,10 +31,13 @@
%newobject gnc_utf8_strip_invalid_strdup;
gchar * gnc_utf8_strip_invalid_strdup(const gchar *);
+
%newobject gnc_locale_from_utf8;
gchar * gnc_locale_from_utf8(const gchar *);
+
%newobject gnc_locale_to_utf8;
gchar * gnc_locale_to_utf8(const gchar *);
+
%rename ("gnc-utf8?") wrap_gnc_utf8_validate;
%inline %{
/* This helper function wraps gnc_utf8_validate() into a predicate. */
Modified: gnucash/trunk/src/core-utils/gnc-gconf-utils.c
===================================================================
--- gnucash/trunk/src/core-utils/gnc-gconf-utils.c 2010-12-30 14:00:49 UTC (rev 20001)
+++ gnucash/trunk/src/core-utils/gnc-gconf-utils.c 2010-12-30 15:51:32 UTC (rev 20002)
@@ -691,6 +691,7 @@
section = gnc_gconf_section_name(name);
value = gconf_client_all_entries(our_client, section, &error);
+ g_free(section);
if (error != NULL)
{
printf("Failed to get list of all gconf keys: %s", error->message);
More information about the gnucash-changes
mailing list