From dd99c1e3b4c32c6e6550db55192362a4d69414f0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 May 2016 12:42:08 +0200 Subject: vo_opengl: remove unnecessary allocation --- video/out/opengl/user_shaders.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/video/out/opengl/user_shaders.c b/video/out/opengl/user_shaders.c index 0cf80af115..65bac0ad2b 100644 --- a/video/out/opengl/user_shaders.c +++ b/video/out/opengl/user_shaders.c @@ -154,9 +154,7 @@ bool parse_user_shader_pass(struct mp_log *log, struct bstr *body, } // Unknown command type - char *str = bstrto0(NULL, line); - mp_err(log, "Unrecognized command '%s'!\n", str); - talloc_free(str); + mp_err(log, "Unrecognized command '%.*s'!\n", BSTR_P(line)); return false; } -- cgit v1.2.3