Author: post
Date: 2010-06-23 09:30:31 +0200 (Wed, 23 Jun 2010)
New Revision: 3437
Modified:
trunk/plugins/resample/resample.c
Log:
Resampler: Don't use unreffed data, set unreffed datat to NULL.
Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c 2010-06-21 23:38:53 UTC (rev 3436)
+++ trunk/plugins/resample/resample.c 2010-06-23 07:30:31 UTC (rev 3437)
@@ -342,6 +342,7 @@
response = rs_filter_response_clone(previous_response);
g_object_unref(previous_response);
+ previous_response = NULL;
/* Use compatible (and slow) version if input isn't 3 channels and
pixelsize 4 */
gboolean use_compatible = ( ! ( input->pixelsize == 4 &&
input->channels == 3));
@@ -393,9 +394,10 @@
/* input no longer needed */
g_object_unref(input);
+ input = NULL;
/* create output */
- output = rs_image16_new(resample->new_width, resample->new_height,
input->channels, input->pixelsize);
+ output = rs_image16_new(resample->new_width, resample->new_height,
afterVertical->channels, afterVertical->pixelsize);
guint input_y_offset = 0;
guint input_y_per_thread = (resample->new_height+threads-1) / threads;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit