void
ods_destroy (struct spreadsheet *s)
{
- printf ("%s:%d\n", __FILE__, __LINE__);
#if 0
struct ods_reader *r = (struct ods_reader *) s;
static void
ods_file_casereader_destroy (struct casereader *reader UNUSED, void *r_)
{
- printf ("%s:%d %p\n", __FILE__, __LINE__, r_);
#if 0
struct ods_reader *r = r_;
if ( r == NULL)
if (!r->used_first_case)
{
- printf ("%s:%d\n", __FILE__, __LINE__);
r->used_first_case = true;
return r->first_case;
}
|| (r->stop_row != -1 && r->rsd.row > r->stop_row + 1)
)
{
- printf ("%s:%d\n", __FILE__, __LINE__);
return NULL;
}
- printf ("%s:%d\n", __FILE__, __LINE__);
c = case_create (r->proto);
case_set_missing (c);
-#if 1
xmlChar *val_string = NULL;
xmlChar *type = NULL;
convert_xml_to_value (c, var, xmv);
}
- // xmlFree (xmv->text);
- // xmlFree (xmv->value);
- // xmlFree (xmv->type);
- // free (xmv);
+ xmlFree (xmv->text);
+ xmlFree (xmv->value);
+ xmlFree (xmv->type);
+ free (xmv);
}
if ( r->rsd.state <= STATE_TABLE)
break;
}
-#endif
return c;
}