Closed swwind closed 1 year ago
Just passing by and noticed this leaks both rectangle and region. You probably want to free()
the rectangle (or don't use a dynamically allocated rectangle at all) and call cairo-region-destroy()
on the region after the call to gtk_widget_input_shape_combine_region()
.
@wmww thanks for the tip.
Fix #8
Maybe it's possible now.I don't know exactly what this code does, but it seems to work.