libgda r3139 - in branches/libgda-3-2: . libgda
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: libgda r3139 - in branches/libgda-3-2: . libgda
- Date: Thu, 10 Apr 2008 04:14:22 +0100 (BST)
Author: murrayc
Date: Thu Apr 10 04:14:21 2008
New Revision: 3139
URL: http://svn.gnome.org/viewvc/libgda?rev=3139&view=rev
Log:
2008-04-09 Vivien Malerba <malerba gnome-db org>
* libgda/gda-value.c: corrected some memory leaks, for bug #526748
Modified:
branches/libgda-3-2/ChangeLog
branches/libgda-3-2/libgda/gda-value.c
Modified: branches/libgda-3-2/libgda/gda-value.c
==============================================================================
--- branches/libgda-3-2/libgda/gda-value.c (original)
+++ branches/libgda-3-2/libgda/gda-value.c Thu Apr 10 04:14:21 2008
@@ -1,5 +1,5 @@
/* GDA common library
- * Copyright (C) 1998 - 2007 The GNOME Foundation.
+ * Copyright (C) 1998 - 2008 The GNOME Foundation.
*
* AUTHORS:
* Michael Lausch <michael lausch at>
@@ -310,6 +310,7 @@
g_return_if_fail (binary);
g_free (binary->data);
+ g_free (binary);
}
/*
@@ -509,16 +510,17 @@
g_return_val_if_fail( val, NULL);
- copy = g_new0(GdaGeometricPoint, 1);
+ copy = g_new0 (GdaGeometricPoint, 1);
copy->x = val->x;
copy->y = val->y;
return copy;
}
-void gda_geometricpoint_free (gpointer boxed)
+void
+gda_geometricpoint_free (gpointer boxed)
{
-
+ g_free (boxed);
}
@@ -602,10 +604,11 @@
return list;
}
-void gda_value_list_free (gpointer boxed)
+void
+gda_value_list_free (gpointer boxed)
{
GList *l = (GList*) boxed;
- g_list_free(l);
+ g_list_free (l);
}
@@ -735,7 +738,6 @@
g_return_if_fail (numeric);
g_free (numeric->number);
-
g_free (numeric);
}
@@ -890,9 +892,9 @@
GdaTime *src = (GdaTime*) boxed;
GdaTime *copy = NULL;
- g_return_val_if_fail(src, NULL);
+ g_return_val_if_fail (src, NULL);
- copy = g_new0(GdaTime, 1);
+ copy = g_new0 (GdaTime, 1);
copy->hour = src->hour;
copy->minute = src->minute;
copy->second = src->second;
@@ -902,9 +904,10 @@
return copy;
}
-void gda_time_free (gpointer boxed)
+void
+gda_time_free (gpointer boxed)
{
-
+ g_free (boxed);
}
@@ -1003,7 +1006,7 @@
g_return_val_if_fail(src, NULL);
- copy = g_new0(GdaTimestamp, 1);
+ copy = g_new0 (GdaTimestamp, 1);
copy->year = src->year;
copy->month = src->month;
copy->day = src->day;
@@ -1016,9 +1019,10 @@
return copy;
}
-void gda_timestamp_free (gpointer boxed)
+void
+gda_timestamp_free (gpointer boxed)
{
-
+ g_free (boxed);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]