summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-14 13:08:16 +0200
committerMichal Krol <michal@vmware.com>2009-09-14 13:08:16 +0200
commitcd26ccf6fecd03ca66731340c7bb7341eaa093a1 (patch)
treebe822d2a9d3aa5e4de255850078349825c44a828 /src/mesa
parent169aead1b55446c7bfe669b6a822d56e8af15f7f (diff)
grammar: Adapt to pp interface change.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/grammar/grammar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c
index 54e94bbf6a..ebfcef0680 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);