]> Dogcows Code - chaz/homebank/blobdiff - src/hb-payee.c
add plugin engine (supports C and Perl plugins)
[chaz/homebank] / src / hb-payee.c
index 4a99bb33f2d0136a412e2de00cebc13f3501ca58..6a51cc7c2563267772ba6853633341a5e55efda6 100644 (file)
@@ -20,6 +20,9 @@
 #include "homebank.h"
 #include "hb-payee.h"
 
+#include "ext.h"
+#include "refcount.h"
+
 
 /****************************************************************************/
 /* Debug macros                                                                                 */
@@ -41,12 +44,12 @@ void
 da_pay_free(Payee *item)
 {
        DB( g_print("da_pay_free\n") );
-       if(item != NULL)
+       if(rc_unref(item))
        {
                DB( g_print(" => %d, %s\n", item->key, item->name) );
 
                g_free(item->name);
-               g_free(item);
+               rc_free(item);
        }
 }
 
@@ -55,7 +58,7 @@ Payee *
 da_pay_malloc(void)
 {
        DB( g_print("da_pay_malloc\n") );
-       return g_malloc0(sizeof(Payee));
+       return rc_alloc(sizeof(Payee));
 }
 
 
This page took 0.020924 seconds and 4 git commands to generate.