From: Axel Wagner Date: Sun, 10 Jul 2011 02:34:18 +0000 (+0200) Subject: Use cleanup() in child.c X-Git-Tag: 4.0.1~7^2~3^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d05fe7a52a7c50fb09b441c329cf93a79c44753;p=i3%2Fi3 Use cleanup() in child.c --- diff --git a/i3bar/src/child.c b/i3bar/src/child.c index a8de6fb9..982617ff 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -45,7 +45,6 @@ void cleanup() { if (child_sig != NULL) { ev_child_stop(main_loop, child_sig); FREE(child_sig); - FREE(statusline_buffer); } } @@ -80,8 +79,7 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) { /* end of file, kill the watcher */ DLOG("stdin: EOF\n"); - ev_io_stop(loop, watcher); - FREE(stdin_io); + cleanup(); break; } rec += n;