]> sigrok.org Git - libsigrok.git/commitdiff
trigger: Fix memory leak.
authorBert Vermeulen <redacted>
Wed, 28 May 2014 13:46:21 +0000 (15:46 +0200)
committerBert Vermeulen <redacted>
Wed, 28 May 2014 13:46:21 +0000 (15:46 +0200)
trigger.c

index 97a7ef6817be0f61a0f4d312671440e852bd59fc..0bc8527d51db8469835f7270b7d1b9e84616b295 100644 (file)
--- a/trigger.c
+++ b/trigger.c
@@ -44,7 +44,7 @@ SR_API void sr_trigger_free(struct sr_trigger *trig)
                stage = l->data;
                g_slist_free_full(stage->matches, g_free);
        }
-       g_slist_free_full(trig->stages, (GDestroyNotify)g_slist_free);
+       g_slist_free_full(trig->stages, g_free);
 
        g_free(trig->name);
        g_free(trig);