[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4031] free only last detached element of slist
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [4031] free only last detached element of slist |
Date: |
Mon, 31 Aug 2009 16:59:31 +0000 |
Revision: 4031
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4031
Author: flixr
Date: 2009-08-31 16:59:28 +0000 (Mon, 31 Aug 2009)
Log Message:
-----------
free only last detached element of slist
Modified Paths:
--------------
paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.c
paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.h
Modified: paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.c
===================================================================
--- paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.c 2009-08-31
16:22:14 UTC (rev 4030)
+++ paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.c 2009-08-31
16:59:28 UTC (rev 4031)
@@ -16,7 +16,7 @@
*history = g_slist_remove_link(*history, last);
g_free(((struct BoozDatedSensor*)last->data)->value);
g_free((struct BoozDatedSensor*)last->data);
- g_slist_free(last);
+ g_slist_free_1(last);
last = g_slist_last(*history);
}
/* update sensor */
Modified: paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.h
===================================================================
--- paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.h 2009-08-31
16:22:14 UTC (rev 4030)
+++ paparazzi3/trunk/sw/simulator/nps/nps_sensors_utils.h 2009-08-31
16:59:28 UTC (rev 4031)
@@ -10,7 +10,7 @@
};
/* cur_reading and sensor_reading must be of a type that can be cast to
DoubleVect3* */
-extern void UpdateSensorLatency(double time, gpointer cur_reading, GSList
**history,
+extern void UpdateSensorLatency(double time, gpointer cur_reading, GSList
**history,
double latency,
gpointer sensor_reading);
#endif /* NPS_SENSORS_UTILS_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4031] free only last detached element of slist,
Felix Ruess <=