vo_opengl: remove unnecessary allocation

This commit is contained in:
wm4 2016-05-16 12:42:08 +02:00
parent 56ed5bf1c7
commit dd99c1e3b4
1 changed files with 1 additions and 3 deletions

View File

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