diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-01-18 05:23:24 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-18 05:23:24 +0000 |
commit | 1e0510680184e1e05110c2f6a7ebf8028b22adfd (patch) | |
tree | 965e7da3ba8a57350845eace1704991da2a8bba0 /gdk-pixbuf | |
parent | 536977184787ee79fa9136d620de69ac0a836c99 (diff) | |
download | gdk-pixbuf-1e0510680184e1e05110c2f6a7ebf8028b22adfd.tar.gz |
Fix several g_new() calls which were using extra indirections or pointless
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:
* gtk/gtktreemodel.c: Fix several g_new() calls which
were using extra indirections or pointless casts.
(#327423, Morten Welinder)
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/io-gif.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 5573dc475..08f86164f 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2006-01-18 Matthias Clasen <mclasen@redhat.com> + + * io-gif.c (gdk_pixbuf__gif_image_load_increment): Don't cast + the results of g_new(). (#327423, Morten Welinder) + 2006-01-12 Federico Mena Quintero <federico@ximian.com> * gdk-pixbuf-util.c (gdk_pixbuf_saturate_and_pixelate): Clarify diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index 4aa099a82..b403d6fa5 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -1576,7 +1576,7 @@ gdk_pixbuf__gif_image_load_increment (gpointer data, /* prepare for the next image_load_increment */ if (context->buf == buf) { g_assert (context->size == size); - context->buf = (guchar *)g_new (guchar, context->amount_needed + (context->size - context->ptr)); + context->buf = g_new (guchar, context->amount_needed + (context->size - context->ptr)); memcpy (context->buf, buf + context->ptr, context->size - context->ptr); } else { /* copy the left overs to the begining of the buffer */ |