Commit 8c925f0a authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

plug expr leak (cb_scrollbar_config_ok_clicked) : plug expr leak

2002-04-10  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* sheet-object-widget.c (cb_checkbox_config_ok_clicked) : plug expr leak
	(cb_scrollbar_config_ok_clicked) : plug expr leak
parent 0cb49c72
2002-04-10 Andreas J. Guelzow <aguelzow@taliesin.ca>
* sheet-object-widget.c (cb_checkbox_config_ok_clicked) : plug expr leak
(cb_scrollbar_config_ok_clicked) : plug expr leak
2002-04-10 Andreas J. Guelzow <aguelzow@taliesin.ca>
* sheet-object-widget.c (cb_checkbox_config_cancel_clicked) : new
......
2002-04-10 Andreas J. Guelzow <aguelzow@taliesin.ca>
* sheet-object-widget.c (cb_checkbox_config_ok_clicked) : plug expr leak
(cb_scrollbar_config_ok_clicked) : plug expr leak
2002-04-10 Andreas J. Guelzow <aguelzow@taliesin.ca>
* sheet-object-widget.c (cb_checkbox_config_cancel_clicked) : new
......
2002-04-10 Andreas J. Guelzow <aguelzow@taliesin.ca>
* sheet-object-widget.c (cb_checkbox_config_ok_clicked) : plug expr leak
(cb_scrollbar_config_ok_clicked) : plug expr leak
2002-04-10 Andreas J. Guelzow <aguelzow@taliesin.ca>
* sheet-object-widget.c (cb_checkbox_config_cancel_clicked) : new
......
......@@ -682,8 +682,10 @@ cb_scrollbar_config_ok_clicked (GtkWidget *button, ScrollbarConfigState *state)
GnmExpr const *expr = gnm_expr_entry_parse (state->expression,
parse_pos_init (&pp, NULL, so->sheet, 0, 0),
NULL, FALSE);
if (expr != NULL)
if (expr != NULL) {
dependent_set_expr (&state->swb->dep, expr);
gnm_expr_unref (expr);
}
gtk_widget_destroy (state->dialog);
}
......@@ -1125,8 +1127,10 @@ cb_checkbox_config_ok_clicked (GtkWidget *button, CheckboxConfigState *state)
GnmExpr const *expr = gnm_expr_entry_parse (state->expression,
parse_pos_init (&pp, NULL, so->sheet, 0, 0),
NULL, FALSE);
if (expr != NULL)
if (expr != NULL) {
dependent_set_expr (&state->swc->dep, expr);
gnm_expr_unref (expr);
}
gtk_widget_destroy (state->dialog);
}
......
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