diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index 3c8667f402..cfc12ef080 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -676,8 +676,10 @@ _RGB_pixel_order (const gchar * expected, const gchar * wanted) gchar *expect, *want; int len; - if (g_ascii_strcasecmp (expected, wanted) == 0) + if (g_ascii_strcasecmp (expected, wanted) == 0) { + g_string_free (ret, TRUE); return g_ascii_strdown (expected, -1); + } expect = g_ascii_strdown (expected, -1); want = g_ascii_strdown (wanted, -1);