|
[libchamplain] Fix a memory bug in champlain_polygon_clear_points(): msg#08244svn-commits-list
commit c7d2e9aefd6b119655ddc25848283a149cd48b3c Author: Emmanuel Rodriguez <emmanuel.rodriguez@xxxxxxxxx> Date: Wed Jul 29 22:26:05 2009 +0200 Fix a memory bug in champlain_polygon_clear_points() Clearing the points is now initializing the list to NULL. This causes the list to be reusable. Otherwise points can't be added to it afterwards. champlain/champlain-polygon.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) --- diff --git a/champlain/champlain-polygon.c b/champlain/champlain-polygon.c index 1bdcd6d..8567c20 100644 --- a/champlain/champlain-polygon.c +++ b/champlain/champlain-polygon.c @@ -391,6 +391,7 @@ champlain_polygon_clear_points (ChamplainPolygon *self) next = g_list_next (next); } g_list_free (self->priv->points); + self->priv->points = NULL; g_object_notify (G_OBJECT (self), "visible"); } _______________________________________________ SVN-commits-list mailing list (read only) http://mail.gnome.org/mailman/listinfo/svn-commits-list Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want.
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |