]> Pileus Git - ~andy/gtk/commit
Removed the unref_fn field. Now all memory management of the buffer is
authorFederico Mena Quintero <federico@redhat.com>
Wed, 20 Oct 1999 21:20:49 +0000 (21:20 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Wed, 20 Oct 1999 21:20:49 +0000 (21:20 +0000)
commit7ef5dec32dac9e31f745b4e05deb8ee6fa10350c
tree8dfa010c18dfbb4d457d812cc266d572ac2e136c
parent46da5c2bec71558218f654e26b70200993ecbbe4
Removed the unref_fn field. Now all memory management of the buffer is

1999-10-20  Federico Mena Quintero  <federico@redhat.com>

* src/gdk-pixbuf.h (GdkPixbuf): Removed the unref_fn field.  Now
all memory management of the buffer is done by libart.

* src/gdk-pixbuf.c (gdk_pixbuf_unref): Do destruction here.
Removed gdk_pixbuf_destroy, gdk_pixbuf_duplicate.

* src/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Implemented in
terms of the libart functions.  Removed the old code.

* src/gdk-pixbuf-io.c (image_handler_load): Removed the save
symbols.  Saving will not be implemented in GdkPixbuf.

* src/io-gif.c: Removed the saving stub.
(image_load): Fixed memory management to fail gracefully if we run
out of memory while loading the image.  Close the gif file when we
are done.  This still needs more error handling for the DGif
functions.

* src/io-jpeg.c (image_load): Some robustness fixes.

* src/io-png.c: Removed the saving stuff.
(image_load): Some memory management fixes.

* src/io-tiff.c (image_load): Ditto.

* src/io-xpm.c (pixbuf_create_from_xpm): Ditto.
13 files changed:
demos/testpixbuf.c
gdk-pixbuf/ChangeLog
gdk-pixbuf/Makefile.am
gdk-pixbuf/gdk-pixbuf-data.c
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/gdk-pixbuf-xform.c [new file with mode: 0644]
gdk-pixbuf/gdk-pixbuf.c
gdk-pixbuf/gdk-pixbuf.h
gdk-pixbuf/io-gif.c
gdk-pixbuf/io-jpeg.c
gdk-pixbuf/io-png.c
gdk-pixbuf/io-tiff.c
gdk-pixbuf/io-xpm.c