diff --git a/tests/reftests/gtk-reftest.c b/tests/reftests/gtk-reftest.c index 012c0b4122..492031bc4b 100644 --- a/tests/reftests/gtk-reftest.c +++ b/tests/reftests/gtk-reftest.c @@ -243,6 +243,7 @@ snapshot_widget (GtkWidget *widget, SnapshotMode mode) } cairo_destroy (cr); + g_main_loop_unref (loop); gtk_widget_destroy (widget); return surface;