Commit 94beb3ab authored by Jody Goldberg's avatar Jody Goldberg

Plug some leaks.

parent 5ca2a3cb
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/graph-series.c (graph_series_destroy) : plug leak.
* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.
2000-09-10 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_read_sheet_object) : objects have their positions
......
......@@ -303,8 +303,13 @@ static void
graph_series_destroy (GtkObject *object)
{
GraphSeries *series = GRAPH_SERIES(object);
printf ("Destroying %p\n", object);
dependent_unlink (&series->dep, NULL);
if (series->dep.expression != NULL) {
expr_tree_unref (series->dep.expression);
series->dep.expression = NULL;
}
}
static void
......
......@@ -422,6 +422,10 @@ sheet_widget_checkbox_destroy (GtkObject *obj)
g_free (swc->label);
swc->label = NULL;
dependent_unlink (&swc->dep, NULL);
if (swc->dep.expression != NULL) {
expr_tree_unref (swc->dep.expression);
swc->dep.expression = NULL;
}
(*sheet_object_widget_class->destroy)(obj);
}
......
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