mountoperation: Fix a crash

We only create the gesture when the dialog is needed,
so don't free it unconditionally.
This commit is contained in:
Matthias Clasen 2018-01-16 14:50:25 -05:00
parent e0990b2311
commit e8079df420

View File

@ -231,7 +231,8 @@ gtk_mount_operation_finalize (GObject *object)
if (priv->handler)
g_object_unref (priv->handler);
g_object_unref (priv->multipress_gesture);
if (priv->multipress_gesture)
g_object_unref (priv->multipress_gesture);
G_OBJECT_CLASS (gtk_mount_operation_parent_class)->finalize (object);
}