From 2ff26361d91e4b1194ea32af87266868b4bf4a0d Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Mon, 28 Sep 2009 21:24:19 +0200 Subject: [PATCH] [AdgMarker] Call set_segment() on weak reference lost Mutual recursion on set_segment() to properly unref the weak reference and not leak memory. --- adg/adg-marker.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/adg/adg-marker.c b/adg/adg-marker.c index feef4756..f65350f6 100644 --- a/adg/adg-marker.c +++ b/adg/adg-marker.c @@ -639,10 +639,8 @@ unset_trail(AdgMarker *marker) { AdgMarkerPrivate *data = marker->data; - if (data->trail != NULL) { - data->trail = NULL; - set_n_segment(marker, 0); - } + if (data->trail != NULL) + set_segment(marker, NULL, 0); } static gboolean -- 2.11.4.GIT