Commit 92fc0431 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Plug leak.

1999-10-17  Morten Welinder  <terra@diku.dk>

	* src/eval.c (cell_get_dependencies): Plug leak.
parent bd9025e6
1999-10-17 Morten Welinder <terra@diku.dk>
* src/eval.c (cell_get_dependencies): Plug leak.
1999-10-16 Miguel de Icaza <miguel@gnu.org>
* src/xml-io.c (xml_read_colrow_info): Set the Column/Row
......
1999-10-17 Morten Welinder <terra@diku.dk>
* src/eval.c (cell_get_dependencies): Plug leak.
1999-10-16 Miguel de Icaza <miguel@gnu.org>
* src/xml-io.c (xml_read_colrow_info): Set the Column/Row
......
......@@ -427,7 +427,7 @@ GList *
cell_get_dependencies (Cell *cell)
{
get_cell_dep_closure_t closure;
GList *l;
GList *l, *sheets;
if (!cell->sheet->dependency_hash)
dependency_hash_init (cell->sheet);
......@@ -437,7 +437,8 @@ cell_get_dependencies (Cell *cell)
closure.sheet = cell->sheet;
closure.list = NULL;
for (l = workbook_sheets (cell->sheet->workbook); l; l = l->next){
sheets = workbook_sheets (cell->sheet->workbook);
for (l = sheets; l; l = l->next){
Sheet *sheet = l->data;
if (!sheet->dependency_hash)
......@@ -446,6 +447,7 @@ cell_get_dependencies (Cell *cell)
g_hash_table_foreach (sheet->dependency_hash,
&search_cell_deps, &closure);
}
g_list_free (sheets);
return closure.list;
}
......
......@@ -427,7 +427,7 @@ GList *
cell_get_dependencies (Cell *cell)
{
get_cell_dep_closure_t closure;
GList *l;
GList *l, *sheets;
if (!cell->sheet->dependency_hash)
dependency_hash_init (cell->sheet);
......@@ -437,7 +437,8 @@ cell_get_dependencies (Cell *cell)
closure.sheet = cell->sheet;
closure.list = NULL;
for (l = workbook_sheets (cell->sheet->workbook); l; l = l->next){
sheets = workbook_sheets (cell->sheet->workbook);
for (l = sheets; l; l = l->next){
Sheet *sheet = l->data;
if (!sheet->dependency_hash)
......@@ -446,6 +447,7 @@ cell_get_dependencies (Cell *cell)
g_hash_table_foreach (sheet->dependency_hash,
&search_cell_deps, &closure);
}
g_list_free (sheets);
return closure.list;
}
......
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