From a092cbee5e0519ef779cfbcb7ed9275a852d85e1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 24 Mar 2013 00:38:22 +0100 Subject: [PATCH] videoconvert: avoid double free Set variable to NULL after free so that we don't free twice. --- gst/videoconvert/gstvideoconvert.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 67102d01a3..68cc49c482 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -222,6 +222,7 @@ gst_video_convert_set_info (GstVideoFilter * filter, if (space->convert) { videoconvert_convert_free (space->convert); + space->convert = NULL; } /* these must match */