Commit 79931d0d authored by Jody Goldberg's avatar Jody Goldberg

Fix typo that was corrupting memory.

parent bacae284
1999-10-06 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_destroy_contents) : Fix typo causing memory
corruption.
* src/sheet.h : Decrease SHEET_MAX_ROWS to 16k until we can tune
memory usage.
From : Jon K Hellan <Jon.K.Hellan@item.ntnu.no>
* src/dialogs/dialog-printer.c (gnumeric_printer_dialog_run):
......
1999-10-06 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_destroy_contents) : Fix typo causing memory
corruption.
* src/sheet.h : Decrease SHEET_MAX_ROWS to 16k until we can tune
memory usage.
From : Jon K Hellan <Jon.K.Hellan@item.ntnu.no>
* src/dialogs/dialog-printer.c (gnumeric_printer_dialog_run):
......
......@@ -2383,7 +2383,7 @@ sheet_destroy_contents (Sheet *sheet)
for (i = COLROW_SEGMENT_INDEX(max_row); i >= 0 ; --i)
if ((tmp = g_ptr_array_index (sheet->rows.info, i)) != NULL) {
g_free (tmp);
g_ptr_array_index (sheet->cols.info, i) = NULL;
g_ptr_array_index (sheet->rows.info, i) = NULL;
}
}
......
......@@ -56,7 +56,7 @@ typedef struct {
#include "summary.h"
#include "workbook.h"
#define SHEET_MAX_ROWS (64 * 1024)
#define SHEET_MAX_ROWS (16 * 1024)
#define SHEET_MAX_COLS 256 /* 0 - 255 inclusive */
typedef GList ColStyleList;
......
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