Fix bug in dialog add.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2367 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-05-20 12:18:29 +00:00
parent 7d40ada688
commit eee2ef43a2

View File

@ -107,7 +107,7 @@ gnc_ui_accWindow_list_select_cb(GtkCList * type_list, gint row, gint column,
/********************************************************************\ /********************************************************************\
* Function: gnc_ui_accWindow_list_unselect_cb - a callback for the* * Function: gnc_ui_accWindow_list_unselect_cb - a callback for the *
* list of account types window * * list of account types window *
* * * *
* Args: type_list - the list widget * * Args: type_list - the list widget *
@ -530,6 +530,11 @@ accWindow (AccountGroup *this_is_not_used)
break; break;
} }
g_free(accData);
if (result < 0)
return NULL;
DEBUG("destroying account add window\n"); DEBUG("destroying account add window\n");
gdk_window_get_geometry(dialog->window, NULL, NULL, gdk_window_get_geometry(dialog->window, NULL, NULL,
@ -538,7 +543,6 @@ accWindow (AccountGroup *this_is_not_used)
gnc_save_window_size("account_add_win", last_width, last_height); gnc_save_window_size("account_add_win", last_width, last_height);
gtk_widget_destroy(dialog); gtk_widget_destroy(dialog);
g_free(accData);
return NULL; return NULL;
} }