]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] Only close terminal on free when open
authorRay Strode <rstrode@redhat.com>
Thu, 8 Oct 2009 19:33:40 +0000 (15:33 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 8 Oct 2009 19:33:40 +0000 (15:33 -0400)
We were closing the terminal twice, causing assertions
to blow.

src/libplybootsplash/ply-terminal.c

index 462a4c658907c34b17f28b4114313bcc6c11a3da..8147e867968b918bd8939fefb154541d0fd9d572 100644 (file)
@@ -499,7 +499,8 @@ ply_terminal_free (ply_terminal_t *terminal)
                                            ply_terminal_detach_from_event_loop,
                                            terminal);
 
-  ply_terminal_close (terminal);
+  if (terminal->is_open)
+    ply_terminal_close (terminal);
 
   free (terminal);
 }