Plug refcount leak
authorChristian Persch <chpe@gnome.org>
Fri, 15 Oct 2010 22:02:07 +0000 (00:02 +0200)
committerChristian Persch <chpe@gnome.org>
Fri, 15 Oct 2010 22:02:50 +0000 (00:02 +0200)
The leaked VtePty leaked FDs, too. Bug #632257.

src/vte.c

index 867a9c1..b9e1b2a 100644 (file)
--- a/src/vte.c
+++ b/src/vte.c
@@ -3670,6 +3670,7 @@ vte_terminal_fork_command_full(VteTerminal *terminal,
 
         vte_terminal_set_pty_object(terminal, pty);
         vte_terminal_watch_child(terminal, pid);
+        g_object_unref (pty);
 
         if (child_pid)
                 *child_pid = pid;