From 7922787f445ce6d15a976b8217738a854d304894 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Wed, 7 Aug 2002 17:41:50 +0000 Subject: [PATCH] Fixed Tim Wunder's compilation problems [which my gcc isn't complaing about, but should :(]. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7146 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-sxsincelast.c | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/src/gnome/dialog-sxsincelast.c b/src/gnome/dialog-sxsincelast.c index 6b158f8877..caaef688c9 100644 --- a/src/gnome/dialog-sxsincelast.c +++ b/src/gnome/dialog-sxsincelast.c @@ -1362,36 +1362,6 @@ _free_varBindings_hash_elts( gpointer key, gpointer value, gpointer data ) g_free( value ); } -static void -_free_toCreateInst_list_elts( gpointer data, gpointer user_data ) -{ - toCreateInstance *tci = (toCreateInstance*)data; - g_assert( tci->date ); - if ( tci->date ) { - g_date_free( tci->date ); - } - if ( tci->varBindings ) { - g_hash_table_foreach( tci->varBindings, - _free_varBindings_hash_elts, - NULL ); - g_hash_table_destroy( tci->varBindings ); - tci->varBindings = NULL; - } - tci->parentTCT = NULL; - tci->node = NULL; - g_free( tci ); -} - -static void -_free_toCreate_list_elts( gpointer data, gpointer user_data ) -{ - toCreateTuple *tct = (toCreateTuple*)data; - tct->sx = NULL; - g_list_foreach( tct->instanceList, _free_toCreateInst_list_elts, NULL ); - g_list_free( tct->instanceList ); - g_free( tct ); -} - static void process_auto_create_list( GList *autoCreateList, sxSinceLastData *sxsld ) { @@ -2024,10 +1994,10 @@ create_each_transaction_helper( Transaction *t, void *d ) for ( ; sList && osList ; sList = sList->next, osList = osList->next ) { - split = (Split*)sList->data; - Account *acct; + split = (Split*)sList->data; + /* FIXME: Ick. This assumes that the split lists will be ordered identically. :( I think it's fair to say they will, but I'd rather not have to count on it. --jsled */