[grisbi-cvs] grisbi/src gsb_data_account.c, 1.107, 1.108 gsb_data_transaction.c, 1.89, 1.90
Mathias Lorente
m-lorente at users.sourceforge.net
Fri May 14 21:03:48 CEST 2010
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26635/src
Modified Files:
gsb_data_account.c gsb_data_transaction.c
Log Message:
Less and less memory leak...
Index: gsb_data_transaction.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_transaction.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- gsb_data_transaction.c 4 May 2010 12:27:53 -0000 1.89
+++ gsb_data_transaction.c 14 May 2010 19:03:46 -0000 1.90
@@ -2202,6 +2202,8 @@
g_free ( transaction -> notes );
if ( transaction -> voucher )
g_free ( transaction -> voucher );
+ if ( transaction -> bank_references )
+ g_free ( transaction -> bank_references );
if ( transaction -> date )
g_date_free ( transaction -> date );
if ( transaction -> value_date )
Index: gsb_data_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- gsb_data_account.c 13 May 2010 18:38:10 -0000 1.107
+++ gsb_data_account.c 14 May 2010 19:03:46 -0000 1.108
@@ -285,28 +285,33 @@
{
if ( ! account )
return;
- if ( account -> account_id );
+ if ( account -> account_id )
g_free ( account -> account_id );
- if ( account -> account_name );
+ if ( account -> account_name )
g_free ( account -> account_name );
- if ( account -> name_icon );
+ if ( account -> name_icon )
g_free ( account -> name_icon );
- if ( account -> comment );
+ if ( account -> comment )
g_free ( account -> comment );
- if ( account -> holder_name );
+ if ( account -> holder_name )
g_free ( account -> holder_name );
- if ( account -> holder_address );
+ if ( account -> holder_address )
g_free ( account -> holder_address );
- if ( account -> bank_branch_code );
+ if ( account -> bank_branch_code )
g_free ( account -> bank_branch_code );
- if ( account -> bank_account_number );
+ if ( account -> bank_account_number )
g_free ( account -> bank_account_number );
- if ( account -> bank_account_key );
+ if ( account -> bank_account_key )
g_free ( account -> bank_account_key );
- if ( account -> bank_account_iban );
+ if ( account -> bank_account_iban )
g_free ( account -> bank_account_iban );
- /* TODO dOm : free row_align */
- /* TODO dOm : free sort_list */
+ /* Should have already been freed */
+ if ( account -> sort_list )
+ g_slist_free( account -> sort_list ) ;
+ if ( account -> form_organization )
+ g_free ( account -> form_organization );
+ if ( account -> bet_start_date )
+ g_date_free( account -> bet_start_date );
g_free ( account );
if ( account_buffer == account )
account_buffer = NULL;
More information about the cvs
mailing list