mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[897/906] api: plugin a small memory leak
Found by adrien.schwartzentruber@gmail.com
This commit is contained in:
parent
b9071875e7
commit
105cfa62fc
1 changed files with 6 additions and 3 deletions
|
@ -38,10 +38,10 @@ gst_gl_api_to_string (GstGLAPI api)
|
||||||
|
|
||||||
if (api == GST_GL_API_NONE) {
|
if (api == GST_GL_API_NONE) {
|
||||||
str = g_string_new ("none");
|
str = g_string_new ("none");
|
||||||
return str->str;
|
goto out;
|
||||||
} else if (api == GST_GL_API_ANY) {
|
} else if (api == GST_GL_API_ANY) {
|
||||||
str = g_string_new ("any");
|
str = g_string_new ("any");
|
||||||
return str->str;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (api & GST_GL_API_OPENGL) {
|
if (api & GST_GL_API_OPENGL) {
|
||||||
|
@ -76,8 +76,11 @@ gst_gl_api_to_string (GstGLAPI api)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = g_string_free (str, FALSE);
|
out:
|
||||||
|
if (!str)
|
||||||
|
return "unknown";
|
||||||
|
|
||||||
|
ret = g_string_free (str, FALSE);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue