diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index c17e8a3988..8e13eb1c2d 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -658,6 +658,7 @@ _gst_caps_set_buffer_array (GstCaps * caps, const gchar * field, buf = va_arg (va, GstBuffer *); } + va_end (va); gst_structure_set_value (structure, field, &array); g_value_unset (&array);