summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/spwgd.c')
-rw-r--r--base/spwgd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/base/spwgd.c b/base/spwgd.c
index 19ec7643..cb04cb72 100644
--- a/base/spwgd.c
+++ b/base/spwgd.c
@@ -171,8 +171,17 @@ data_produced:
}
}
+static void
+s_PWGD_release(stream_state * st)
+{
+ stream_PWGD_state *const ss = (stream_PWGD_state *) st;
+
+ gs_free_object(st->memory, ss->line_buffer, "PWGD(close)");
+ ss->line_buffer = NULL;
+}
+
/* Stream template */
const stream_template s_PWGD_template = {
- &st_PWGD_state, s_PWGD_init, s_PWGD_process, 1, 1, NULL,
+ &st_PWGD_state, s_PWGD_init, s_PWGD_process, 1, 1, s_PWGD_release,
s_PWGD_set_defaults
};