From: chris mikkelson Date: Thu, 29 Jan 2009 03:23:14 +0000 (-0600) Subject: Recursively call msgproc_finish on downstream msgprocs. The X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=2f6dbc9140641dc9447a14282b89f7beaabd176c;p=liburl Recursively call msgproc_finish on downstream msgprocs. The finish routine of the module is responsible for freeing the module with msgproc_free. --- diff --git a/msgproc.c b/msgproc.c index 8457a85..d3bffad 100644 --- a/msgproc.c +++ b/msgproc.c @@ -91,6 +91,7 @@ msgproc_process(msgproc *m, char *data, size_t size) void msgproc_finish(msgproc *m) { + msgproc_finish(msgproc_next(m)); if (m && m->mp_mod && m->mp_mod->mp_finish) m->mp_mod->mp_finish(m); }