Author: akv
Date: 2012-04-29 01:11:59 +0200 (Sun, 29 Apr 2012)
New Revision: 4207
Modified:
branches/4175-enfuse/src/rs-enfuse.c
Log:
Cleaning up.
Modified: branches/4175-enfuse/src/rs-enfuse.c
===================================================================
--- branches/4175-enfuse/src/rs-enfuse.c 2012-04-28 22:51:19 UTC (rev
4206)
+++ branches/4175-enfuse/src/rs-enfuse.c 2012-04-28 23:11:59 UTC (rev
4207)
@@ -51,6 +51,7 @@
g_object_unref(request);
GdkPixbuf *pixbuf = rs_filter_response_get_image8(response);
+ g_object_unref(response);
guchar *pixels = gdk_pixbuf_get_pixels(pixbuf);
gint rowstride = gdk_pixbuf_get_rowstride(pixbuf);
@@ -65,6 +66,9 @@
sum += pixels[i];
num++;
}
+
+ g_object_unref(pixbuf);
+
return (gint) (sum/num);
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit