GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit dcf082b6 authored by BST 1999 Andy Thomas's avatar BST 1999 Andy Thomas Committed by Andy Thomas

app/lc_dialog.c app/selection.c app/color_area.c app/paths_dialog.c


Wed Oct 27 20:51:10 BST 1999 Andy Thomas <alt@gimp.org>

	* app/lc_dialog.c
	* app/selection.c
	* app/color_area.c
	* app/paths_dialog.c
	* tools/pdbgen/pdb/gimage.pdb
	* app/gimage_cmds.c

	General memory leak cleanups.
parent 1b31ca31
Wed Oct 27 20:51:10 BST 1999 Andy Thomas <alt@gimp.org>
* app/lc_dialog.c
* app/selection.c
* app/color_area.c
* app/paths_dialog.c
* tools/pdbgen/pdb/gimage.pdb
* app/gimage_cmds.c
General memory leaks cleanups/fixes.
Wed Oct 27 13:05:09 MEST 1999 Sven Neumann <sven@gimp.org>
* plug-ins/gap/gap_main.c
......
......@@ -117,7 +117,7 @@ color_area_draw_rect (GdkDrawable *drawable,
{
if (color_area_rgb_buf)
g_free (color_area_rgb_buf);
color_area_rgb_buf = g_malloc (rowstride * height);
color_area_rgb_buf = g_malloc (color_area_rgb_buf_size = rowstride * height);
}
bp = color_area_rgb_buf;
for (xx = 0; xx < width; xx++)
......
......@@ -725,7 +725,12 @@ selection_free (Selection *select)
gdk_gc_destroy (select->gc_out);
if (select->gc_layer)
gdk_gc_destroy (select->gc_layer);
#ifdef USE_XDRAWPOINTS
if (select->gc_white)
gdk_gc_destroy (select->gc_white);
if (select->gc_black)
gdk_gc_destroy (select->gc_black);
#endif
selection_free_segs (select);
g_free (select);
}
......@@ -725,7 +725,12 @@ selection_free (Selection *select)
gdk_gc_destroy (select->gc_out);
if (select->gc_layer)
gdk_gc_destroy (select->gc_layer);
#ifdef USE_XDRAWPOINTS
if (select->gc_white)
gdk_gc_destroy (select->gc_white);
if (select->gc_black)
gdk_gc_destroy (select->gc_black);
#endif
selection_free_segs (select);
g_free (select);
}
......@@ -2348,6 +2348,7 @@ image_thumbnail_invoker (Argument *args)
width = buf->width;
height = buf->height;
bpp = buf->bytes;
temp_buf_free(buf);
}
}
......
......@@ -117,7 +117,7 @@ color_area_draw_rect (GdkDrawable *drawable,
{
if (color_area_rgb_buf)
g_free (color_area_rgb_buf);
color_area_rgb_buf = g_malloc (rowstride * height);
color_area_rgb_buf = g_malloc (color_area_rgb_buf_size = rowstride * height);
}
bp = color_area_rgb_buf;
for (xx = 0; xx < width; xx++)
......
......@@ -733,6 +733,8 @@ clear_pixmap_preview (PATHWIDGETP pwidget)
paths_dialog->gc, FALSE, 1, 1,
paths_dialog->image_width+1,
paths_dialog->image_height+1);
g_free(rgb_buf);
}
/* insrow == -1 -> append else insert at insrow */
......
......@@ -504,6 +504,7 @@ lc_dialog_fill_preview_with_thumb (GtkWidget *w,
}
g_free(even);
g_free(odd);
temp_buf_free(buf);
}
static void
......
......@@ -733,6 +733,8 @@ clear_pixmap_preview (PATHWIDGETP pwidget)
paths_dialog->gc, FALSE, 1, 1,
paths_dialog->image_width+1,
paths_dialog->image_height+1);
g_free(rgb_buf);
}
/* insrow == -1 -> append else insert at insrow */
......
......@@ -725,7 +725,12 @@ selection_free (Selection *select)
gdk_gc_destroy (select->gc_out);
if (select->gc_layer)
gdk_gc_destroy (select->gc_layer);
#ifdef USE_XDRAWPOINTS
if (select->gc_white)
gdk_gc_destroy (select->gc_white);
if (select->gc_black)
gdk_gc_destroy (select->gc_black);
#endif
selection_free_segs (select);
g_free (select);
}
......@@ -117,7 +117,7 @@ color_area_draw_rect (GdkDrawable *drawable,
{
if (color_area_rgb_buf)
g_free (color_area_rgb_buf);
color_area_rgb_buf = g_malloc (rowstride * height);
color_area_rgb_buf = g_malloc (color_area_rgb_buf_size = rowstride * height);
}
bp = color_area_rgb_buf;
for (xx = 0; xx < width; xx++)
......
......@@ -1293,6 +1293,7 @@ HELP
width = buf->width;
height = buf->height;
bpp = buf->bytes;
temp_buf_free(buf);
}
}
CODE
......
......@@ -1293,6 +1293,7 @@ HELP
width = buf->width;
height = buf->height;
bpp = buf->bytes;
temp_buf_free(buf);
}
}
CODE
......
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