Commit e7cad4e9 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder
Browse files

Allocate right amount of memory.

2006-01-17  Morten Welinder  <terra@gnome.org>

	* ms-chart.c (chart_write_AI): Allocate right amount of memory.
parent a24f4426
......@@ -29,6 +29,7 @@ Morten:
* Fix near-infinite loop in FACTDOUBLE.
* Fix text-to-columns crash probably affecting stf import too.
* Fix font preference crash. [#326830]
* Fix memory allocation problem for writing charts.
Jon Kåre:
* Hand clipboard off to clipboard manager when exiting.
......
2006-01-17 Morten Welinder <terra@gnome.org>
* ms-chart.c (chart_write_AI): Allocate right amount of memory.
2005-11-18 Jean Brefort <jean.brefort@normalesup.org>
http://bugzilla.gnome.org/show_bug.cgi?id=321678
......
......@@ -3551,7 +3551,7 @@ chart_write_AI (XLChartWriteState *s, GOData const *dim, unsigned n,
ms_biff_put_var_write (s->bp, lendat, 2);
} else if (ref_type == 1 && value) {
if (n) {
XLValue *xlval = (XLValue*) g_new0 (XLValue*, 1);
XLValue *xlval = g_new0 (XLValue, 1);
xlval->series = s->cur_series;
xlval->value = value;
g_ptr_array_add (s->values[n - 1], xlval);
......
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