print portal: don't leak window handles

Pointed out by Christian Persch.

Closes https://gitlab.gnome.org/GNOME/gtk/issues/1274
This commit is contained in:
Matthias Clasen 2018-08-15 23:21:15 +00:00
parent 3c2aceba63
commit 79b87cc543

View File

@ -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)