[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix VTE critical message when a terminal has no pty

noreply at xfce.org noreply at xfce.org
Thu Sep 7 03:53:51 CEST 2017


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit 2ee546ff4392371e420eb69e4fc859498e22849a
Author: Igor <f2404 at yandex.ru>
Date:   Wed Sep 6 21:53:06 2017 -0400

    Fix VTE critical message when a terminal has no pty
---
 terminal/terminal-widget.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index 4a0e431..5741b2b 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -197,7 +197,9 @@ terminal_widget_finalize (GObject *object)
   TerminalWidget *widget = TERMINAL_WIDGET (object);
 
 #ifdef HAVE_LIBUTEMPTER
-  utempter_remove_record (vte_pty_get_fd (vte_terminal_get_pty (VTE_TERMINAL (widget))));
+  VtePty *pty = vte_terminal_get_pty (VTE_TERMINAL (widget));
+  if (VTE_IS_PTY (pty))
+    utempter_remove_record (vte_pty_get_fd (pty));
 #endif
 
   /* disconnect the misc-highlight-urls watch */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list