[Rawstudio-commit] r3479 - trunk/plugins/fuji-rotate

Klaus Post klauspost at gmail.com
Wed Jul 14 17:53:42 CEST 2010


Author: post
Date: 2010-07-14 17:53:41 +0200 (Wed, 14 Jul 2010)
New Revision: 3479

Modified:
   trunk/plugins/fuji-rotate/fuji-rotate.c
Log:
Don't unref when object is used later.

Modified: trunk/plugins/fuji-rotate/fuji-rotate.c
===================================================================
--- trunk/plugins/fuji-rotate/fuji-rotate.c	2010-07-12 20:57:17 UTC (rev 3478)
+++ trunk/plugins/fuji-rotate/fuji-rotate.c	2010-07-14 15:53:41 UTC (rev 3479)
@@ -212,10 +212,11 @@
 		return previous_response;
 
 	RSFilterResponse *response = rs_filter_response_clone(previous_response);
-	g_object_unref(previous_response);
 
 	rs_filter_response_set_width(response, fuji_width / sqrt(0.5));
 	rs_filter_response_set_height(response, (rs_filter_response_get_height(previous_response) - fuji_width) / sqrt(0.5));
 
+	g_object_unref(previous_response);
+
 	return response;
 }




More information about the Rawstudio-commit mailing list