goffice r2247 - in branches/goffice-0-6: . goffice/math



Author: jbrefort
Date: Thu Oct 23 08:37:41 2008
New Revision: 2247
URL: http://svn.gnome.org/viewvc/goffice?rev=2247&view=rev

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

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



Modified:
   branches/goffice-0-6/ChangeLog
   branches/goffice-0-6/goffice/math/go-cspline.c

Modified: branches/goffice-0-6/goffice/math/go-cspline.c
==============================================================================
--- branches/goffice-0-6/goffice/math/go-cspline.c	(original)
+++ branches/goffice-0-6/goffice/math/go-cspline.c	Thu Oct 23 08:37:41 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]