[Rawstudio-commit] r758 - trunk/src

Anders Brander anders at brander.dk
Sun Sep 3 15:19:41 CEST 2006


Author: abrander
Date: 2006-09-03 15:19:41 +0200 (Sun, 03 Sep 2006)
New Revision: 758

Modified:
   trunk/src/rawfile.c
Log:
Now reffing pixbuf in raw_get_pixbuf().

Modified: trunk/src/rawfile.c
===================================================================
--- trunk/src/rawfile.c	2006-09-02 18:43:22 UTC (rev 757)
+++ trunk/src/rawfile.c	2006-09-03 13:19:41 UTC (rev 758)
@@ -153,6 +153,8 @@
 	pl = gdk_pixbuf_loader_new();
 	gdk_pixbuf_loader_write(pl, rawfile->map+rawfile->base+pos, length, NULL);
 	pixbuf = gdk_pixbuf_loader_get_pixbuf(pl);
+	if (pixbuf)
+		g_object_ref(pixbuf);
 	gdk_pixbuf_loader_close(pl, NULL);
 	return(pixbuf);
 }




More information about the Rawstudio-commit mailing list