viewport: Fix leak

Fixes #6002
This commit is contained in:
Benjamin Otte
2023-08-12 22:16:24 +02:00
parent 07add0144e
commit 4cc5a54da3

View File

@@ -744,5 +744,7 @@ gtk_viewport_scroll_to (GtkViewport *viewport,
gtk_adjustment_animate_to_value (viewport->adjustment[GTK_ORIENTATION_HORIZONTAL], x);
gtk_adjustment_animate_to_value (viewport->adjustment[GTK_ORIENTATION_VERTICAL], y);
g_clear_pointer (&scroll, gtk_scroll_info_unref);
}