diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-03-24 00:38:22 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-03-25 10:48:25 +0100 |
commit | 4b436bed20092ce4676c80ea546dd5c58c4a7e71 (patch) | |
tree | 82619706e9db3660da861e2c5cf8ce9c52510f36 | |
parent | d72cc9cfa9470c5b5db63ad93141171ce90f04d7 (diff) |
videoconvert: avoid double free
Set variable to NULL after free so that we don't free twice.
-rw-r--r-- | gst/videoconvert/gstvideoconvert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 03357b663..9ba62baf7 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 */ |