diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-08-15 23:21:15 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-08-15 23:21:15 +0000 |
commit | 79b87cc543ec0b6206fbe0b733cfe4db06858f06 (patch) | |
tree | 82e9c83f76c50d7aaf880daa9ab863b4d39c6125 | |
parent | 3c2aceba63d80b3f10c7bb76896ccd9b32134a2d (diff) | |
download | gtk+-79b87cc543ec0b6206fbe0b733cfe4db06858f06.tar.gz |
print portal: don't leak window handles
Pointed out by Christian Persch.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1274
-rw-r--r-- | gtk/gtkprintoperation-portal.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |