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/pixops | |
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/pixops')
-rw-r--r-- | gdk-pixbuf/pixops/timescale.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk-pixbuf/pixops/timescale.c b/gdk-pixbuf/pixops/timescale.c index f3c9045667..76b2f8d19d 100644 --- a/gdk-pixbuf/pixops/timescale.c +++ b/gdk-pixbuf/pixops/timescale.c @@ -146,10 +146,10 @@ int main (int argc, char **argv) int filter_level; - src_buf = malloc(src_rowstride * src_height); + src_buf = g_malloc(src_rowstride * src_height); memset (src_buf, 0x80, src_rowstride * src_height); - dest_buf = malloc(dest_rowstride * dest_height); + dest_buf = g_malloc(dest_rowstride * dest_height); memset (dest_buf, 0x80, dest_rowstride * dest_height); for (filter_level = GDK_INTERP_NEAREST ; filter_level <= GDK_INTERP_HYPER; filter_level++) @@ -216,8 +216,8 @@ int main (int argc, char **argv) } printf ("\n"); - free (src_buf); - free (dest_buf); + g_free (src_buf); + g_free (dest_buf); } printf ("SCALE\n=====\n\n"); |