r21202 - gnucash/trunk/src/gnome-utils - (cppcheck) fix two possible memory leaks
Christian Stimming
cstim at code.gnucash.org
Sun Aug 21 15:42:55 EDT 2011
Author: cstim
Date: 2011-08-21 15:42:55 -0400 (Sun, 21 Aug 2011)
New Revision: 21202
Trac: http://svn.gnucash.org/trac/changeset/21202
Modified:
gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
(cppcheck) fix two possible memory leaks
Patch by Aurimas Fišeras.
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2011-08-21 19:42:44 UTC (rev 21201)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2011-08-21 19:42:55 UTC (rev 21202)
@@ -1927,6 +1927,8 @@
window = GNC_MAIN_WINDOW(page->window);
if (!window)
{
+ g_free(old_page_name);
+ g_free(old_page_long_name);
LEAVE("no window widget available");
return;
}
More information about the gnucash-changes
mailing list