notebook: Fix crash when dragging a tab

gtk_gesture_get_last_event can return NULL, so guard against that.
This commit is contained in:
Timm Bäder
2017-05-03 11:21:29 +02:00
committed by Matthias Clasen
parent c9d421eff3
commit 8aefa09765

View File

@@ -2786,6 +2786,9 @@ gtk_notebook_gesture_released (GtkGestureMultiPress *gesture,
button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
if (!event)
return;
if (event->type != GDK_BUTTON_RELEASE)
return;