r16401 - gnucash/trunk/src/gnome-utils - Fix a win32 crash when resetting pixmap options.
Andreas Köhler
andi5 at cvs.gnucash.org
Tue Aug 7 06:35:36 EDT 2007
Author: andi5
Date: 2007-08-07 06:35:35 -0400 (Tue, 07 Aug 2007)
New Revision: 16401
Trac: http://svn.gnucash.org/trac/changeset/16401
Modified:
gnucash/trunk/src/gnome-utils/dialog-options.c
Log:
Fix a win32 crash when resetting pixmap options.
Modified: gnucash/trunk/src/gnome-utils/dialog-options.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-options.c 2007-08-07 10:28:47 UTC (rev 16400)
+++ gnucash/trunk/src/gnome-utils/dialog-options.c 2007-08-07 10:35:35 UTC (rev 16401)
@@ -2879,10 +2879,9 @@
SCM result;
string = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget));
- DEBUG("filename %s", string);
+ DEBUG("filename %s", string ? string : "(null)");
result = scm_makfrom0str(string ? string : "");
- if (string)
- g_free(string);
+ g_free(string);
return result;
}
More information about the gnucash-changes
mailing list