Commit ae38b99c authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

another leak: don't allocate the PaintPressureOptions structure twice for

2000-02-24  Michael Natterer  <mitch@gimp.org>

	* app/tool_options.c: another leak: don't allocate the
	PaintPressureOptions structure twice for one tool.
parent 868888fe
2000-02-24 Michael Natterer <mitch@gimp.org>
* app/tool_options.c: another leak: don't allocate the
PaintPressureOptions structure twice for one tool.
2000-02-24 Michael Natterer <mitch@gimp.org>
* app/datafiles.c: fixed a memleak.
......
......@@ -602,7 +602,6 @@ paint_options_init (PaintOptions *options,
break;
}
options->pressure_options = paint_pressure_options_new (tool_type);
if (options->pressure_options->frame)
{
gtk_box_pack_start (GTK_BOX (options->tool_options.main_vbox),
......@@ -658,7 +657,7 @@ paint_options_reset (PaintOptions *options)
static PaintPressureOptions *
paint_pressure_options_new (ToolType tool_type)
{
PaintPressureOptions *pressure;
PaintPressureOptions *pressure = NULL;
GtkWidget *frame = NULL;
GtkWidget *hbox = NULL;
......
......@@ -602,7 +602,6 @@ paint_options_init (PaintOptions *options,
break;
}
options->pressure_options = paint_pressure_options_new (tool_type);
if (options->pressure_options->frame)
{
gtk_box_pack_start (GTK_BOX (options->tool_options.main_vbox),
......@@ -658,7 +657,7 @@ paint_options_reset (PaintOptions *options)
static PaintPressureOptions *
paint_pressure_options_new (ToolType tool_type)
{
PaintPressureOptions *pressure;
PaintPressureOptions *pressure = NULL;
GtkWidget *frame = NULL;
GtkWidget *hbox = NULL;
......
......@@ -602,7 +602,6 @@ paint_options_init (PaintOptions *options,
break;
}
options->pressure_options = paint_pressure_options_new (tool_type);
if (options->pressure_options->frame)
{
gtk_box_pack_start (GTK_BOX (options->tool_options.main_vbox),
......@@ -658,7 +657,7 @@ paint_options_reset (PaintOptions *options)
static PaintPressureOptions *
paint_pressure_options_new (ToolType tool_type)
{
PaintPressureOptions *pressure;
PaintPressureOptions *pressure = NULL;
GtkWidget *frame = NULL;
GtkWidget *hbox = NULL;
......
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