r16057 - gnucash/trunk/src/gnome-utils - Fix memory leak where a free was forgotten

Christian Stimming cstim at cvs.gnucash.org
Sun May 6 17:27:10 EDT 2007


Author: cstim
Date: 2007-05-06 17:27:09 -0400 (Sun, 06 May 2007)
New Revision: 16057
Trac: http://svn.gnucash.org/trac/changeset/16057

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Fix memory leak where a free was forgotten

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2007-05-06 04:35:53 UTC (rev 16056)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2007-05-06 21:27:09 UTC (rev 16057)
@@ -1417,6 +1417,7 @@
   /* Figure out the label name. Add the accelerator if possible. */
   title = gnc_main_window_generate_title(window);
   strings = g_strsplit(title, "_", 0);
+  g_free(title);
   expanded = g_strjoinv("__", strings);
   if (index < 10) {
     data.label = g_strdup_printf("_%d %s", (index + 1) % 10, expanded);



More information about the gnucash-changes mailing list