mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
868888fe21
commit
ae38b99c21
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue