Author: bugman Date: Fri Feb 25 14:56:04 2011 New Revision: 12632 URL: http://svn.gna.org/viewcvs/relax?rev=12632&view=rev Log: The reference counting appears to not be needed in the C modules. This allows the modules to be compiled under Python 2.4 or lower. Modified: 1.3/maths_fns/relax_fit.c Modified: 1.3/maths_fns/relax_fit.c URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/relax_fit.c?rev=12632&r1=12631&r2=12632&view=diff ============================================================================== --- 1.3/maths_fns/relax_fit.c (original) +++ 1.3/maths_fns/relax_fit.c Fri Feb 25 14:56:04 2011 @@ -90,14 +90,7 @@ scaling_matrix[i] = PyFloat_AsDouble(element); } - /* Reference counting */ - Py_XDECREF(values); - Py_XDECREF(sd); - Py_XDECREF(relax_times); - Py_XDECREF(scaling_matrix); - /* Return nothing */ - Py_INCREF(Py_None); return Py_None; } @@ -132,9 +125,6 @@ /* Back calculated the peak intensities */ exponential(params, relax_times, back_calc, num_times); - /* Reference counting */ - Py_DECREF(params_arg); - /* Calculate and return the chi-squared value */ return Py_BuildValue("f", chi2(values,sd,back_calc,num_times)); } @@ -159,7 +149,6 @@ /* Back calculated the peak intensities */ exponential(params, relax_times, back_calc, num_times); - Py_DECREF(params); return NULL; }