Commit e939cc3c authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Free sunxi_disp_t struct directly from sunxi_disp_close()


Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent 19ac8389
......@@ -996,7 +996,6 @@ FBDevCloseScreen(CLOSE_SCREEN_ARGS_DECL)
if (fPtr->sunxi_disp_private) {
sunxi_disp_close(fPtr->sunxi_disp_private);
free(fPtr->sunxi_disp_private);
fPtr->sunxi_disp_private = NULL;
}
......
......@@ -144,6 +144,7 @@ int sunxi_disp_close(sunxi_disp_t *ctx)
close(ctx->fd_fb);
close(ctx->fd_disp);
ctx->fd_disp = -1;
free(ctx);
}
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment