From 79b87cc543ec0b6206fbe0b733cfe4db06858f06 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 15 Aug 2018 23:21:15 +0000 Subject: print portal: don't leak window handles Pointed out by Christian Persch. Closes https://gitlab.gnome.org/GNOME/gtk/issues/1274 --- gtk/gtkprintoperation-portal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkprintoperation-portal.c b/gtk/gtkprintoperation-portal.c index a6683fd212..ded550262b 100644 --- a/gtk/gtkprintoperation-portal.c +++ b/gtk/gtkprintoperation-portal.c @@ -62,6 +62,8 @@ portal_data_free (gpointer data) { PortalData *portal = data; + if (portal->parent) + gtk_window_unexport_handle (portal->parent); g_object_unref (portal->op); g_object_unref (portal->proxy); if (portal->loop) -- cgit v1.2.1