From 6af9aa7f982f66e1b3e8ca683278890ba274633f Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 26 Aug 2014 18:43:54 +0100 Subject: Ensure that the signals are properly destroyed in enta_free() etna_create() allocates six signals, one for the context and one per allocated command buffer. etna_free() cleans up the command buffers, but fails to clean up the signals which etna_create() allocated. Fix this oversight. Signed-off-by: Russell King --- src/etnaviv/etna.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/etnaviv/etna.c b/src/etnaviv/etna.c index a79f4b1..c33527e 100644 --- a/src/etnaviv/etna.c +++ b/src/etnaviv/etna.c @@ -362,9 +362,11 @@ int etna_free(struct etna_ctx *ctx) /* Free command buffers */ for(int x=0; xconn, ctx->cmdbufi[x].sig_id); etna_bo_del(ctx->conn, ctx->cmdbufi[x].bo, NULL); ETNA_FREE(ctx->cmdbuf[x]); } + viv_user_signal_destroy(ctx->conn, ctx->sig_id); ETNA_FREE(ctx); return ETNA_OK; } -- cgit