diff --git a/README b/README index e2cd3ca315..89844ef3d9 100644 --- a/README +++ b/README @@ -218,7 +218,7 @@ Main Developers: ---------------- Rob Browning for perl, scheme & GTK port Robin Clark for original X-Accountant -Jeremy Collins for GnuCash web site & initial GTK code +Jeremy Collins for GnuCash web site & main-window GTK code Linas Vepstas for managing it all Fixes & Patches: @@ -240,5 +240,7 @@ Ron Record for SCO Unixware & OpenServer binaries Christopher Seawood for XbaeMatrix core dump Richard Skelton for Solaris cleanup Henning Spruth for German text & euro date rework +Ken Yamaguchi QIF import fixes + ... and I am sure that I have missed many others ... diff --git a/src/engine/QIFIO.c b/src/engine/QIFIO.c index ef778a25d8..e4729e8e45 100644 --- a/src/engine/QIFIO.c +++ b/src/engine/QIFIO.c @@ -1013,20 +1013,23 @@ xaccReadQIFAccountGroup( char *datafile ) xaccFreeAccount(acc); continue; } - /* free up malloced data if unknown account type */ - if (-1 == xaccAccountGetType (acc)) { - xaccFreeAccount(acc); - continue; - } /* check to see if we already know this account; * if we do, use it, otherwise create it */ acc_name = xaccAccountGetName (acc); preexisting = xaccGetAccountFromName (grp, acc_name); - if (preexisting) { + if (preexisting) + { xaccFreeAccount (acc); acc = preexisting; - } else { + } + else if (-1 == xaccAccountGetType (acc)) + { /* free up malloced data if unknown account type */ + xaccFreeAccount(acc); + continue; + } + else + { insertAccount( grp, acc ); }