glcolorconvert: fix memleak

https://bugzilla.gnome.org/show_bug.cgi?id=741943
This commit is contained in:
Nicola Murino 2014-12-25 23:10:19 +01:00 committed by Tim-Philipp Müller
parent 209fbd950f
commit ef987be337

View file

@ -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);