mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
Fix 1-byte memory leak on first run
This commit is contained in:
parent
ee77f38f40
commit
33fae41aaa
@ -610,7 +610,7 @@ static void
|
|||||||
inner_main (void *closure, int argc, char **argv)
|
inner_main (void *closure, int argc, char **argv)
|
||||||
{
|
{
|
||||||
SCM main_mod;
|
SCM main_mod;
|
||||||
char* fn;
|
char* fn = NULL;
|
||||||
|
|
||||||
scm_c_eval_string("(debug-set! stack 200000)");
|
scm_c_eval_string("(debug-set! stack 200000)");
|
||||||
|
|
||||||
@ -654,6 +654,7 @@ inner_main (void *closure, int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else if (gnc_prefs_get_bool(GNC_PREFS_GROUP_NEW_USER, GNC_PREF_FIRST_STARTUP))
|
else if (gnc_prefs_get_bool(GNC_PREFS_GROUP_NEW_USER, GNC_PREF_FIRST_STARTUP))
|
||||||
{
|
{
|
||||||
|
g_free(fn); /* fn could be an empty string ("") */
|
||||||
gnc_destroy_splash_screen();
|
gnc_destroy_splash_screen();
|
||||||
gnc_ui_new_user_dialog();
|
gnc_ui_new_user_dialog();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user