Commit 623fa04b authored by Almer S. Tigelaar's avatar Almer S. Tigelaar Committed by Almer S. Tigelaar

Fix leakage.

2001-07-16  Almer S. Tigelaar  <almer@gnome.org>

	* stf-parse.c (stf_parse_general): Fix leakage.
parent a2610b9f
2001-07-16 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_general): Fix leakage.
2001-07-15 Zbigniew Chyla <cyba@gnome.pl>
* src/gnumeric-util.c (gnumeric_create_popup_menu): Fixed problem with
......
2001-07-16 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_general): Fix leakage.
2001-07-15 Zbigniew Chyla <cyba@gnome.pl>
* src/gnumeric-util.c (gnumeric_create_popup_menu): Fixed problem with
......
2001-07-16 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_general): Fix leakage.
2001-07-15 Zbigniew Chyla <cyba@gnome.pl>
* src/gnumeric-util.c (gnumeric_create_popup_menu): Fixed problem with
......
2001-07-16 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_general): Fix leakage.
2001-07-15 Zbigniew Chyla <cyba@gnome.pl>
* src/gnumeric-util.c (gnumeric_create_popup_menu): Fixed problem with
......
......@@ -608,20 +608,22 @@ stf_parse_general (StfParseOptions_t *parseoptions, char const *data)
row = 0;
while (*src.position != '\0') {
GList *r = parseoptions->parsetype == PARSE_TYPE_CSV
? stf_parse_csv_line (&src, parseoptions)
: stf_parse_fixed_line (&src, parseoptions);
GList *r;
if (++row >= SHEET_MAX_ROWS) {
g_warning (WARN_TOO_MANY_ROWS, row);
return NULL;
}
if (parseoptions->parselines != -1)
if (row > parseoptions->parselines)
break;
r = parseoptions->parsetype == PARSE_TYPE_CSV
? stf_parse_csv_line (&src, parseoptions)
: stf_parse_fixed_line (&src, parseoptions);
l = g_list_append (l, r);
src.position++;
}
......
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