Commit 23da7290 authored by Abhinav Singh's avatar Abhinav Singh
Browse files

gamepad: Fix NULL check in LinuxRawGamepad finalize

We want to free non-NULL pointers, not NULL ones.
parent 5840acdf
......@@ -368,7 +368,7 @@ games_linux_raw_gamepad_finalize (GObject *object)
remove_event_source (self);
if (self->device != NULL)
libevdev_free (self->device);
if (self->guid == NULL)
if (self->guid != NULL)
g_free (self->guid);
G_OBJECT_CLASS (games_linux_raw_gamepad_parent_class)->finalize (object);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment