]> git.sur5r.net Git - i3/i3/commitdiff
Use cleanup() in child.c
authorAxel Wagner <mail@merovius.de>
Sun, 10 Jul 2011 02:34:18 +0000 (04:34 +0200)
committerAxel Wagner <mail@merovius.de>
Sun, 10 Jul 2011 02:34:18 +0000 (04:34 +0200)
i3bar/src/child.c

index a8de6fb91164718f2da4a17ff6f1e72eac99ed03..982617ffe43dcbc8f2e02258b51036e7ee8ea1b9 100644 (file)
@@ -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;