summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2001-02-07 11:37:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-02-07 11:37:05 +0000
commit82e24215429b1b07d36980b43cbed25956703c92 (patch)
tree74f44fc1ae2684a9cab284ec522b0c0d6a89ce91 /gdk-pixbuf
parent6aa710b91b43c52dba94933e2bcde15a5904fd21 (diff)
downloadgtk+-82e24215429b1b07d36980b43cbed25956703c92.tar.gz
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().
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/io-xpm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index 42ea468b33..4b1d13dc4d 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -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.
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c
index 00cb7b9365..0ddc3c234e 100644
--- a/gdk-pixbuf/io-xpm.c
+++ b/gdk-pixbuf/io-xpm.c
@@ -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. */