[Gnucash-changes] r12088 - gnucash/trunk - Fix crash when

Christian Stimming cstim at cvs.gnucash.org
Sun Dec 4 06:56:18 EST 2005


Author: cstim
Date: 2005-12-04 06:56:17 -0500 (Sun, 04 Dec 2005)
New Revision: 12088
Trac: http://svn.gnucash.org/trac/changeset/12088

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/import-export/hbci/druid-hbci-initial.c
Log:
Fix crash when
clicking on "start aqbanking-wizard" with gwenhywfar>=1.99.x.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-12-03 20:45:23 UTC (rev 12087)
+++ gnucash/trunk/ChangeLog	2005-12-04 11:56:17 UTC (rev 12088)
@@ -1,3 +1,8 @@
+2005-12-04  Christian Stimming  <stimming at tuhh.de>
+
+	* src/import-export/hbci/druid-hbci-initial.c: Fix crash when
+	clicking on "start aqbanking-wizard" with gwenhywfar>=1.99.x.
+
 2005-12-03  Christian Stimming  <stimming at tuhh.de>
 
 	* Makefile.am: Add convenience makefile rule "make pot" for

Modified: gnucash/trunk/src/import-export/hbci/druid-hbci-initial.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/druid-hbci-initial.c	2005-12-03 20:45:23 UTC (rev 12087)
+++ gnucash/trunk/src/import-export/hbci/druid-hbci-initial.c	2005-12-04 11:56:17 UTC (rev 12088)
@@ -46,6 +46,7 @@
 
 #include <aqbanking/banking.h>
 #include <gwenhywfar/stringlist.h>
+#include <gwenhywfar/version.h>
 
 /* #define DEFAULT_HBCI_VERSION 201 */
 
@@ -530,7 +531,13 @@
      be freed */
   backend_name = g_strdup (backend_name_nc);
   GWEN_PluginDescription_List2_freeAll (pluginlist);
+#if ((GWENHYWFAR_VERSION_MAJOR < 1) || \
+     ((GWENHYWFAR_VERSION_MAJOR == 1) && \
+      ((GWENHYWFAR_VERSION_MINOR < 98))))
+  /* Memory cleanup needed for gwenhywfar<1.98.x but not for
+     gwenhywfar>=1.98.x */
   GWEN_PluginDescription_List2_free (pluginlist);
+#endif
 
   /* ***** */
 



More information about the gnucash-changes mailing list