diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-12-10 21:05:02 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-12-10 23:03:12 -0500 |
commit | b6a6729ce1075507abcd28db48f120b6a48f72f2 (patch) | |
tree | 13f8eb448bca7ee146d48f025f3a864c83735af7 /demos | |
parent | da08592ea1d50dd0ddf9bc341a9ffb5bc6c84a20 (diff) | |
download | gtk+-b6a6729ce1075507abcd28db48f120b6a48f72f2.tar.gz |
Fix a segfault in the event axes demo
Seems that pointer_info can be NULL, after all.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/event_axes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/gtk-demo/event_axes.c b/demos/gtk-demo/event_axes.c index 3a761f14a9..02d138c670 100644 --- a/demos/gtk-demo/event_axes.c +++ b/demos/gtk-demo/event_axes.c @@ -111,7 +111,8 @@ event_data_new (void) static void event_data_free (EventData *data) { - axes_info_free (data->pointer_info); + if (data->pointer_info) + axes_info_free (data->pointer_info); g_hash_table_destroy (data->touch_info); g_free (data); } |