Skip to content

gtkgesturerotate: Fix a memory leak

Yariv requested to merge yarivb/gtk:fix-gtkgesturerotate-potential-leak into master

On touchpads gtk_gesture_get_sequences() was called without a corresponding g_list_free(). The same was true for touchscreens if due to some reason only a single sequence was found.

The fix is modeled after a similar one for GtkGestureZoom, see commit 7ee0e656

The same bug exists in GTK3, once this MR is accepted I'll backport the fix.

Edited by Yariv

Merge request reports