Commit 26174d4c authored by Almer S. Tigelaar's avatar Almer S. Tigelaar Committed by Almer S. Tigelaar

Don't free things twice. (colrow_save_sizes): Initialize run length.

2001-05-06  Almer S. Tigelaar  <almer@gnome.org>

	* src/colrow.c (colrow_restore_sizes): Don't free things
	twice.
	(colrow_save_sizes): Initialize run length.
parent 62ec24c9
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/colrow.c (colrow_restore_sizes): Don't free things
twice.
(colrow_save_sizes): Initialize run length.
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric.h: Define ColRowRLESizeList.
......
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/colrow.c (colrow_restore_sizes): Don't free things
twice.
(colrow_save_sizes): Initialize run length.
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric.h: Define ColRowRLESizeList.
......
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/colrow.c (colrow_restore_sizes): Don't free things
twice.
(colrow_save_sizes): Initialize run length.
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric.h: Define ColRowRLESizeList.
......
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/colrow.c (colrow_restore_sizes): Don't free things
twice.
(colrow_save_sizes): Initialize run length.
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric.h: Define ColRowRLESizeList.
......
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/colrow.c (colrow_restore_sizes): Don't free things
twice.
(colrow_save_sizes): Initialize run length.
2001-05-06 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric.h: Define ColRowRLESizeList.
......
......@@ -254,7 +254,7 @@ colrow_save_sizes (Sheet *sheet, gboolean const is_cols, int first, int last)
ColRowRLESizeList *list = NULL;
SavedSize *ss;
double size, run_size = 0.;
int run_length;
int run_length = 0;
g_return_val_if_fail (sheet != NULL, NULL);
g_return_val_if_fail (first <= last, NULL);
......@@ -438,8 +438,6 @@ colrow_restore_sizes (Sheet *sheet, gboolean const is_cols,
}
}
offset += ss->length;
g_free (ss);
}
colrow_rle_size_list_destroy (sizes);
......
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