goffice r2246 - in trunk: . goffice/math



Author: jbrefort
Date: Wed Oct 22 19:39:33 2008
New Revision: 2246
URL: http://svn.gnome.org/viewvc/goffice?rev=2246&view=rev

Log:
2008-10-22  Jean Brefort  <jean brefort normalesup org>

	* goffice/math/go-cspline.c: (go_cspline_destroy): return without freeing
	if the argument is NULL. [#557442]



Modified:
   trunk/ChangeLog
   trunk/goffice/math/go-cspline.c

Modified: trunk/goffice/math/go-cspline.c
==============================================================================
--- trunk/goffice/math/go-cspline.c	(original)
+++ trunk/goffice/math/go-cspline.c	Wed Oct 22 19:39:33 2008
@@ -202,6 +202,7 @@
 */
 void SUFFIX(go_cspline_destroy) (struct SUFFIX(GOCSpline) *sp)
 {
+	g_return_if_fail (sp);
 	g_free (sp->a);
 	g_free (sp->b);
 	g_free (sp->c);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]