libgda r3138 - in branches/release-3-0-branch: . libgda
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: libgda r3138 - in branches/release-3-0-branch: . libgda
- Date: Thu, 10 Apr 2008 04:12:12 +0100 (BST)
Author: murrayc
Date: Thu Apr 10 04:12:12 2008
New Revision: 3138
URL: http://svn.gnome.org/viewvc/libgda?rev=3138&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/release-3-0-branch/ChangeLog
branches/release-3-0-branch/libgda/gda-value.c
Modified: branches/release-3-0-branch/libgda/gda-value.c
==============================================================================
--- branches/release-3-0-branch/libgda/gda-value.c (original)
+++ branches/release-3-0-branch/libgda/gda-value.c Thu Apr 10 04:12:12 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);
}
@@ -606,10 +608,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);
}
@@ -739,7 +742,6 @@
g_return_if_fail (numeric);
g_free (numeric->number);
-
g_free (numeric);
}
@@ -894,9 +896,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;
@@ -906,9 +908,10 @@
return copy;
}
-void gda_time_free (gpointer boxed)
+void
+gda_time_free (gpointer boxed)
{
-
+ g_free (boxed);
}
@@ -1007,7 +1010,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;
@@ -1020,9 +1023,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]