In each case, the GList structure itself was not
being freed.
/**
* Return link list of available email items that have not already been linked
* to groups. Note that the list contains references to items and should be
- * <code>g_free()</code> when done. Do <b>*NOT*</b> attempt to used the
+ * <code>g_list_free()</code> when done. Do <b>*NOT*</b> attempt to used the
* <code>addrbook_free_xxx()<code> functions... this will destroy the
* addressbook data!
*
/* Remember old list */
oldData = group->listEMail;
group->listEMail = listEMail;
- mgu_clear_list(oldData);
- oldData = NULL;
+ g_list_free(oldData);
}
/**
listEMail = addrbook_get_available_email_list( abf, group );
edit_group_load_clist( groupeditdlg.clist_avail, listEMail );
- mgu_clear_list( listEMail );
- listEMail = NULL;
+ g_list_free( listEMail );
gtk_cmclist_select_row( groupeditdlg.clist_group, 0, 0 );
gtk_cmclist_select_row( groupeditdlg.clist_avail, 0, 0 );