From: Michal Krol Date: Mon, 14 Sep 2009 11:08:16 +0000 (+0200) Subject: grammar: Adapt to pp interface change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd26ccf6fecd03ca66731340c7bb7341eaa093a1;p=mesa.git grammar: Adapt to pp interface change. --- diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c index 54e94bbf6a9..ebfcef06800 100644 --- a/src/mesa/shader/grammar/grammar.c +++ b/src/mesa/shader/grammar/grammar.c @@ -3149,7 +3149,10 @@ grammar_fast_check (grammar id, return 0; } - sl_pp_context_init(&context); + if (sl_pp_context_init(&context)) { + free(outbuf); + return 1; + } if (sl_pp_tokenise(&context, outbuf, &intokens)) { sl_pp_context_destroy(&context);