Commit d5853ee9 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Plug leak. (BC_R): Ditto.

2001-10-30  Morten Welinder  <terra@diku.dk>

	* ms-chart.c (BC_R): Plug leak.
	(BC_R): Ditto.
parent 44a5ba1b
2001-10-30 Morten Welinder <terra@diku.dk>
* ms-chart.c (BC_R): Plug leak.
(BC_R): Ditto.
2001-10-27 Jody Goldberg <jgoldberg@home.com> 2001-10-27 Jody Goldberg <jgoldberg@home.com>
* ms-excel-read.c (ms_excel_read_dval) : new function. * ms-excel-read.c (ms_excel_read_dval) : new function.
......
...@@ -306,6 +306,8 @@ BC_R(ai)(ExcelChartHandler const *handle, ...@@ -306,6 +306,8 @@ BC_R(ai)(ExcelChartHandler const *handle,
char * desc = style_format_as_XL (fmt, FALSE); char * desc = style_format_as_XL (fmt, FALSE);
d (2, printf ("Format = '%s';\n", desc);); d (2, printf ("Format = '%s';\n", desc););
g_free (desc); g_free (desc);
style_format_unref (fmt);
} }
} else { } else {
d (2, puts ("Uses number format from data source");); d (2, puts ("Uses number format from data source"););
...@@ -1127,6 +1129,8 @@ BC_R(ifmt)(ExcelChartHandler const *handle, ...@@ -1127,6 +1129,8 @@ BC_R(ifmt)(ExcelChartHandler const *handle,
char * desc = style_format_as_XL (fmt, FALSE); char * desc = style_format_as_XL (fmt, FALSE);
d (0, printf ("Format = '%s';\n", desc);); d (0, printf ("Format = '%s';\n", desc););
g_free (desc); g_free (desc);
style_format_unref (fmt);
} }
return FALSE; return FALSE;
...@@ -1813,12 +1817,13 @@ BC_R(seriestext)(ExcelChartHandler const *handle, ...@@ -1813,12 +1817,13 @@ BC_R(seriestext)(ExcelChartHandler const *handle,
{ {
guint16 const id = MS_OLE_GET_GUINT16 (q->data); /* must be 0 */ guint16 const id = MS_OLE_GET_GUINT16 (q->data); /* must be 0 */
int const slen = MS_OLE_GET_GUINT8 (q->data + 2); int const slen = MS_OLE_GET_GUINT8 (q->data + 2);
char *str = biff_get_text (q->data + 3, slen, NULL); char *str;
d (2, puts (str););
g_return_val_if_fail (id == 0, FALSE); g_return_val_if_fail (id == 0, FALSE);
str = biff_get_text (q->data + 3, slen, NULL);
d (2, puts (str););
/* A quick heuristic */ /* A quick heuristic */
if (s->currentSeries != NULL && if (s->currentSeries != NULL &&
s->currentSeries->vector [MS_VECTOR_PURPOSE_LABELS].remote_ID == -1) { s->currentSeries->vector [MS_VECTOR_PURPOSE_LABELS].remote_ID == -1) {
...@@ -1835,6 +1840,8 @@ BC_R(seriestext)(ExcelChartHandler const *handle, ...@@ -1835,6 +1840,8 @@ BC_R(seriestext)(ExcelChartHandler const *handle,
/* TODO : handle axis and chart titles */ /* TODO : handle axis and chart titles */
g_free (str);
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment