[Xfce4-commits] [apps/xfce4-terminal] 04/05: terminal-window.c: fix segfault when right/middle click on tab bar

noreply at xfce.org noreply at xfce.org
Wed Jun 1 00:37:37 CEST 2016


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

ochosi pushed a commit to branch master
in repository apps/xfce4-terminal.

commit f363107fad511c16431fc6c07531971f19763cf6
Author: Steven Vanden Branden <stevenvandenbrandenstift at gmail.com>
Date:   Fri May 29 15:40:21 2015 +0200

    terminal-window.c: fix segfault when right/middle click on tab bar
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
 terminal/terminal-window.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 34358e4..6d89083 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -942,7 +942,11 @@ terminal_window_notebook_event_in_allocation (gint event_x,
 {
 	cairo_rectangle_int_t *allocation;
 	gtk_widget_get_allocation (widget, allocation);
-
+	
+	if(allocation == NULL)
+		return FALSE;
+	
+	
 	if (event_x >= allocation->x \
 		&& event_x <= allocation->x + allocation->width \
 		&& event_y >= allocation->y \

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


More information about the Xfce4-commits mailing list