Fix a segfault in the event axes demo

Seems that pointer_info can be NULL, after all.
This commit is contained in:
Matthias Clasen 2013-12-10 21:05:02 -05:00
parent da08592ea1
commit b6a6729ce1

View File

@ -111,6 +111,7 @@ event_data_new (void)
static void
event_data_free (EventData *data)
{
if (data->pointer_info)
axes_info_free (data->pointer_info);
g_hash_table_destroy (data->touch_info);
g_free (data);