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.
This commit is contained in:
BST 1999 Andy Thomas 1999-10-27 20:09:46 +00:00 committed by Andy Thomas
parent 1b31ca310c
commit dcf082b6cc
13 changed files with 40 additions and 6 deletions

View File

@ -1,3 +1,14 @@
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

View File

@ -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++)

View File

@ -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);
}

View File

@ -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);
}

View File

@ -2348,6 +2348,7 @@ image_thumbnail_invoker (Argument *args)
width = buf->width;
height = buf->height;
bpp = buf->bytes;
temp_buf_free(buf);
}
}

View File

@ -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++)

View File

@ -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 */

View File

@ -504,6 +504,7 @@ lc_dialog_fill_preview_with_thumb (GtkWidget *w,
}
g_free(even);
g_free(odd);
temp_buf_free(buf);
}
static void

View File

@ -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 */

View File

@ -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);
}

View File

@ -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++)

View File

@ -1293,6 +1293,7 @@ HELP
width = buf->width;
height = buf->height;
bpp = buf->bytes;
temp_buf_free(buf);
}
}
CODE

View File

@ -1293,6 +1293,7 @@ HELP
width = buf->width;
height = buf->height;
bpp = buf->bytes;
temp_buf_free(buf);
}
}
CODE