Commit 72ff1ae3 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Plug leak.

1999-08-29  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-lookup.c (gnumeric_indirect): Plug leak.

	* src/format.c (pre_parse_format): Don't overrun string.
	(format_number): Plug leak.

1999-08-29  Morten Welinder  <terra@diku.dk>

	* ms-ole.c (ms_ole_path_decode): Plug leak.
parent ce48d24b
1999-08-29 Morten Welinder <terra@diku.dk>
* src/functions/fn-lookup.c (gnumeric_indirect): Plug leak.
* src/format.c (pre_parse_format): Don't overrun string.
(format_number): Plug leak.
* src/workbook.c (workbook_do_destroy): Typo.
1999-08-28 Miguel de Icaza <miguel@gnu.org>
......
1999-08-29 Morten Welinder <terra@diku.dk>
* src/functions/fn-lookup.c (gnumeric_indirect): Plug leak.
* src/format.c (pre_parse_format): Don't overrun string.
(format_number): Plug leak.
* src/workbook.c (workbook_do_destroy): Typo.
1999-08-28 Miguel de Icaza <miguel@gnu.org>
......
1999-08-29 Morten Welinder <terra@diku.dk>
* ms-ole.c (ms_ole_path_decode): Plug leak.
1999-08-16 Michael Meeks <michael@imaginator.com>
* gnome-stream-ole.c (real_seek): Expanded, and fixed for
......
......@@ -2140,6 +2140,7 @@ ms_ole_path_decode (MsOle *f, const char *path)
while (dirs[lp])
g_free (dirs[lp++]);
g_free (dirs);
return dir;
}
......
......@@ -527,13 +527,16 @@ gnumeric_indirect (FunctionEvalInfo *ei, Value **args)
else
a1_style = TRUE;
if (error)
if (error) {
g_free (text);
return value_new_error (&ei->pos, gnumeric_err_REF);
}
if (a1_style)
error = !cellref_a1_get (&ref, text, ei->pos.eval_col, ei->pos.eval_row);
else
error = !cellref_r1c1_get (&ref, text, ei->pos.eval_col, ei->pos.eval_row);
g_free (text);
if (error)
return value_new_error (&ei->pos, gnumeric_err_REF);
......@@ -546,8 +549,6 @@ gnumeric_indirect (FunctionEvalInfo *ei, Value **args)
return value_new_int (0);
else
return value_duplicate (cell->value);
g_free (text);
}
static char *help_column = {
......
......@@ -258,10 +258,12 @@ pre_parse_format (StyleFormatEntry *style)
for (format = style->format; *format; format++){
switch (*format){
case '"':
for (format++; *format && *format != '"'; format++)
;
if (*format)
format++;
while (*format && *format != '"')
format++;
if (!*format)
return;
break;
case '\\':
......@@ -794,8 +796,11 @@ format_number (gdouble number, const StyleFormatEntry *style_format_entry)
case '\\':
if (*(format+1)){
if (can_render_number && !info.rendered)
g_string_append (result, do_render_number (number, &info));
if (can_render_number && !info.rendered) {
char *s = do_render_number (number, &info);
g_string_append (result, s);
g_free (s);
}
g_string_append_c (result, *format);
}
break;
......
......@@ -527,13 +527,16 @@ gnumeric_indirect (FunctionEvalInfo *ei, Value **args)
else
a1_style = TRUE;
if (error)
if (error) {
g_free (text);
return value_new_error (&ei->pos, gnumeric_err_REF);
}
if (a1_style)
error = !cellref_a1_get (&ref, text, ei->pos.eval_col, ei->pos.eval_row);
else
error = !cellref_r1c1_get (&ref, text, ei->pos.eval_col, ei->pos.eval_row);
g_free (text);
if (error)
return value_new_error (&ei->pos, gnumeric_err_REF);
......@@ -546,8 +549,6 @@ gnumeric_indirect (FunctionEvalInfo *ei, Value **args)
return value_new_int (0);
else
return value_duplicate (cell->value);
g_free (text);
}
static char *help_column = {
......
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