{
struct gnumeric_reader *r = (struct gnumeric_reader *) s;
+
+#if 0
if (0 == --r->ref_cnt)
{
int i;
free (r);
}
+#endif
}
gnm_file_casereader_destroy (struct casereader *reader UNUSED, void *r_)
{
struct gnumeric_reader *r = r_;
+
if ( r == NULL)
return ;
+#if 0
if ( r->xtr)
xmlFreeTextReader (r->xtr);
r->xtr = NULL;
caseproto_unref (r->proto);
gnumeric_destroy (&r->spreadsheet);
+#endif
}
goto error;
reader = gnumeric_make_reader (spreadsheet, &opts);
dict = spreadsheet->dict;
+ gnumeric_destroy (spreadsheet);
}
else if (0 == strncasecmp (tok, "ODS", 3))
{