summaryrefslogtreecommitdiff
path: root/gfx/gfx.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 23:01:45 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-08-30 23:13:40 (GMT)
commite5f83a6d3f12984758748d70f827c2ad4e68ef0f (patch)
tree4192a351f6041d8cbfab8a4673dc174901f2948f /gfx/gfx.c
parentd34bd9be49b2fc8d85eba54f1e8e67bc40a0eb67 (diff)
downloadeeshow-e5f83a6d3f12984758748d70f827c2ad4e68ef0f.zip
eeshow-e5f83a6d3f12984758748d70f827c2ad4e68ef0f.tar.gz
eeshow-e5f83a6d3f12984758748d70f827c2ad4e68ef0f.tar.bz2
gfx/: begin to bring some order into post-diff cleanup
Sadly, we need two new partial destructor functions for this, cro_img_reset and cro_img_destroy, plus one for the graphics abstraction, gfx_destroy.
Diffstat (limited to 'gfx/gfx.c')
-rw-r--r--gfx/gfx.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gfx/gfx.c b/gfx/gfx.c
index a75b054..c07d211 100644
--- a/gfx/gfx.c
+++ b/gfx/gfx.c
@@ -148,12 +148,18 @@ void *gfx_user(struct gfx *gfx)
}
+void gfx_destroy(struct gfx *gfx)
+{
+ free(gfx);
+}
+
+
int gfx_end(struct gfx *gfx)
{
int res = 0;
if (gfx->ops->end)
res = gfx->ops->end(gfx->user);
- free(gfx);
+ gfx_destroy(gfx);
return res;
}