r17037 - gnucash/trunk/src - Fix a potential memory leak in gnc_dialog_get_string().
Andreas Köhler
andi5 at cvs.gnucash.org
Thu Mar 20 19:14:46 EDT 2008
Author: andi5
Date: 2008-03-20 19:14:45 -0400 (Thu, 20 Mar 2008)
New Revision: 17037
Trac: http://svn.gnucash.org/trac/changeset/17037
Modified:
gnucash/trunk/src/gnome-utils/gnc-dialog.c
gnucash/trunk/src/gnome-utils/gnc-dialog.h
gnucash/trunk/src/gnome-utils/test/test-gnc-dialog.c
gnucash/trunk/src/gnome/gnc-plugin-page-budget.c
Log:
Fix a potential memory leak in gnc_dialog_get_string().
Make the function return a non-const value and make it the
responsibility of the caller to free that. This is necessary because
not all possible types of input support a getter of an internal and
managed string.
More information about the gnucash-patches
mailing list