summaryrefslogtreecommitdiff
path: root/tools/gslite/gslt_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gslite/gslt_init.c')
-rw-r--r--tools/gslite/gslt_init.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/gslite/gslt_init.c b/tools/gslite/gslt_init.c
index 29f3a80bc..4d58f984c 100644
--- a/tools/gslite/gslt_init.c
+++ b/tools/gslite/gslt_init.c
@@ -166,9 +166,19 @@ gs_state *gslt_init_state(gs_memory_t *mem, gx_device *dev)
return pgs;
}
-void gslt_free_library(gs_memory_t *mem, gx_device *dev, gs_state *pgs)
+void gslt_free_state(gs_memory_t *mem, gs_state *pgs)
{
- gs_lib_finit(0, 0, mem);
+ gs_state_free(pgs);
+}
+
+void gslt_free_device(gs_memory_t *mem, gx_device *dev)
+{
+ gs_free_object(mem, dev, "gslt device"); // TODO: how do i free devices?
+}
+
+void gslt_free_library(gs_memory_t *mem)
+{
+ // TODO: how do i free the allocator?
}
#if 0