Commit 716dcc13 authored by Jody Goldberg's avatar Jody Goldberg
Browse files

Patch some simple leaks

parent 785dde99
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -6,6 +6,7 @@
* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
status update.
(cmd_sort_destroy) : Leaks.
* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
......
......@@ -1481,6 +1481,14 @@ cmd_sort_destroy (GtkObject *cmd)
CmdSort *me = CMD_SORT (cmd);
sort_clause_destroy (me->clauses);
if (me->data) {
g_free (me->data);
me->data = NULL;
}
if (me->range) {
g_free (me->range);
me->range = NULL;
}
gnumeric_command_destroy (cmd);
}
......
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