projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
isl_tab_from_recession_cone: take basic set instead of basic map as argument
[platform/upstream/isl.git]
/
isl_stream.c
diff --git
a/isl_stream.c
b/isl_stream.c
index
478eb4e
..
9277e47
100644
(file)
--- a/
isl_stream.c
+++ b/
isl_stream.c
@@
-47,6
+47,7
@@
static struct isl_stream* isl_stream_new(struct isl_ctx *ctx)
if (!s)
return NULL;
s->ctx = ctx;
+ isl_ctx_ref(s->ctx);
s->size = 256;
s->file = NULL;
s->str = NULL;
@@
-297,5
+298,6
@@
void isl_stream_free(struct isl_stream *s)
isl_stream_error(s, tok, "unexpected token");
isl_token_free(tok);
}
+ isl_ctx_deref(s->ctx);
free(s);
}