summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-jpeg.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@redhat.com>1999-09-17 07:57:25 +0000
committerArturo Espinosa <unammx@src.gnome.org>1999-09-17 07:57:25 +0000
commit66779b9b266514edd724df619c5ec833fcb61f3f (patch)
tree18768c90567e75d4eb9af9856f5618d1549fe6bf /gdk-pixbuf/io-jpeg.c
parent6fce115b98578d7b501990e5542c2a8b2048ab3d (diff)
downloadgtk+-66779b9b266514edd724df619c5ec833fcb61f3f.tar.gz
Set the initial ref_count to 1.
1999-09-17 Federico Mena Quintero <federico@redhat.com> * src/io-bmp.c (image_load): Set the initial ref_count to 1. * src/io-gif.c (image_load): Likewise. * src/io-jpeg.c (image_load): Likewise. * src/io-png.c (image_load): Likewise. * src/io-tiff.c (image_load): Likewise. * src/io-xpm.c (_pixbuf_create_from_xpm): Likewise. * src/gdk-pixbuf-io.c (gdk_pixbuf_load_image): Added an assertion for the ref_count to be != 0.
Diffstat (limited to 'gdk-pixbuf/io-jpeg.c')
-rw-r--r--gdk-pixbuf/io-jpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 8e2a830bdd..afe5baee82 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -121,7 +121,7 @@ GdkPixBuf *image_load(FILE *f)
g_free(pixbuf);
return NULL;
}
- pixbuf->ref_count = 0;
+ pixbuf->ref_count = 1;
pixbuf->unref_func = NULL;
return pixbuf;