comment out debugging printing. remove memory_leak

2000-01-07  Jonathan Blandford  <jrb@redhat.com>

	* gdk-pixbuf/gdk-pixbuf-xform.c (gdk_pixbuf_rotate): comment out
	debugging printing.
	* gdk-pixbuf/io-gif.c (gif_get_lzw): remove memory_leak
This commit is contained in:
Jonathan Blandford 2000-01-07 19:18:54 +00:00 committed by Jonathan Blandford
parent 84c85a1a11
commit 00b598d267
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2000-01-07 Jonathan Blandford <jrb@redhat.com>
* gdk-pixbuf/gdk-pixbuf-xform.c (gdk_pixbuf_rotate): comment out
debugging printing.
* gdk-pixbuf/gdk-pixbuf-io.c: Added progressive animation loading.
* gdk-pixbuf/gdk-pixbuf-io.h: Added progressive animation loading.
* gdk-pixbuf/gdk-pixbuf-loader.c: Added progressive animation
@ -9,6 +12,7 @@
* gdk-pixbuf/io-gif.c (image_load_increment): I think the
ref-counting mess is finally fixed. Added progressive animation
loading.
(gif_get_lzw): remove memory_leak
* doc/tmpl/gdk-pixbuf-loader.sgml: much longer long description
added.

View File

@ -71,10 +71,10 @@ gdk_pixbuf_rotate (GdkPixbuf *pixbuf, gdouble angle)
trans[5] = (double)h / 2.0;
art_affine_multiply(affine, rot, trans);
/*
g_print("Affine: %e %e %e %e %e %e\n", affine[0], affine[1], affine[2],
affine[3], affine[4], affine[5]);
*/
/* rowstride = w * pixbuf->art_pixbuf->n_channels; */
rowstride = w * 3;

View File

@ -821,10 +821,11 @@ gif_get_lzw (GifContext *context)
}
if (context->animation && context->state == GIF_GET_NEXT_STEP) {
(* context->frame_done_func) (context->frame,
context->user_data);
gdk_pixbuf_unref (context->pixbuf);
if (context->frame_done_func)
(* context->frame_done_func) (context->frame,
context->user_data);
if (context->frame_done_func)
gdk_pixbuf_unref (context->pixbuf);
context->pixbuf = NULL;
context->frame = NULL;
}