[epiphany-extensions/tabs-reloaded: 15/16] Bug 592947 - crash in Epiphany Web Broweser



commit 832963bd04ba6377c84078a8c4675e21ed7ffc8b
Author: Benjamin Otte <otte gnome org>
Date:   Mon Aug 24 22:26:48 2009 +0200

    Bug 592947 - crash in Epiphany Web Broweser
    
    The event can be NULL

 extensions/tabs-reloaded/ephy-cell-renderer-tab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/tabs-reloaded/ephy-cell-renderer-tab.c b/extensions/tabs-reloaded/ephy-cell-renderer-tab.c
index 55087cb..65f4dc5 100644
--- a/extensions/tabs-reloaded/ephy-cell-renderer-tab.c
+++ b/extensions/tabs-reloaded/ephy-cell-renderer-tab.c
@@ -83,7 +83,7 @@ ephy_cell_renderer_tab_activate (GtkCellRenderer      *cell,
   int icon_width, icon_height;
 
   /* We only handle mouse events for the small buttons */
-  if (event->type != GDK_BUTTON_PRESS)
+  if (event == NULL || event->type != GDK_BUTTON_PRESS)
     return FALSE;
 
   x = event->button.x - cell_area->x - cell->xpad;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]