]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.h
output/text: Fix memory leak of internal state buffers.
[libsigrok.git] / output / text / text.h
index 8d5c98760924a004c9031ad09abf9e32f4ae8816..8e96318d5481356c92667ec093157c513b94ca6f 100644 (file)
@@ -48,6 +48,7 @@ struct context {
 
 SR_PRIV void flush_linebufs(struct context *ctx, uint8_t *outbuf);
 SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode);
+SR_PRIV int text_cleanup(struct sr_output *o);
 SR_PRIV int event(struct sr_output *o, int event_type, uint8_t **data_out,
                  uint64_t *length_out);