diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-02-19 14:35:25 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-02-19 14:35:25 +0000 |
commit | ba46da61a70df8d3471063204e0d51a308a1747c (patch) | |
tree | 5985801294b33e0a8c6aed6cb57ff62647beb91c /gdk-pixbuf/io-jpeg.c | |
parent | 1f6effe99bd65746e8b4b65c9ddc008ea0b21197 (diff) | |
download | gtk+-ba46da61a70df8d3471063204e0d51a308a1747c.tar.gz |
Copy data and free data with free().
2001-02-19 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
Copy data and free data with free().
* gdk-pixbuf/gdk-pixbuf.c:
* gdk-pixbuf/io-jpeg.c:
* gdk-pixbuf/io-png.c:
Use g_try_malloc/g_free instead malloc/free.
* gdk-pixbuf/test-gdk-pixbuf.c:
Must... initialize... gobject...
* gdk-pixbuf/pixops/timescale.c:
* gtk/gtkcalendar.c:
Use g_malloc instead of malloc.
Diffstat (limited to 'gdk-pixbuf/io-jpeg.c')
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index de40d2e786..2c295131d9 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -145,7 +145,7 @@ output_message_handler (j_common_ptr cinfo) static void free_buffer (guchar *pixels, gpointer data) { - free (pixels); + g_free (pixels); } @@ -222,7 +222,7 @@ gdk_pixbuf__jpeg_image_load (FILE *f, GError **error) w = cinfo.output_width; h = cinfo.output_height; - pixels = malloc (h * w * 3); + pixels = g_try_malloc (h * w * 3); if (!pixels) { jpeg_destroy_decompress (&cinfo); |