Use g_free, since the buffer is allocated with g_try_alloc().

2001-02-07  Alexander Larsson  <alexl@redhat.com>

	* io-xpm.c (free_buffer):
	Use g_free, since the buffer is allocated with g_try_alloc().
This commit is contained in:
Alexander Larsson 2001-02-07 11:37:05 +00:00 committed by Alexander Larsson
parent 6aa710b91b
commit 82e2421542
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-02-07 Alexander Larsson <alexl@redhat.com>
* io-xpm.c (free_buffer):
Use g_free, since the buffer is allocated with g_try_alloc().
2001-02-06 Christophe Merlet <redfox@eikonex.org>
* gdk-pixbuf-data.c: Fixes a minor typo.

View File

@ -1229,7 +1229,7 @@ mem_buffer (enum buf_op op, gpointer handle)
static void
free_buffer (guchar *pixels, gpointer data)
{
free (pixels);
g_free (pixels);
}
/* This function does all the work. */