summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive_gtk.pm2
-rw-r--r--perl-install/my_gtk.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm
index 34e08d62f..d4978a026 100644
--- a/perl-install/interactive_gtk.pm
+++ b/perl-install/interactive_gtk.pm
@@ -225,6 +225,8 @@ sub wait_message_endW {
sub kill {
my ($o) = @_;
$o->{before_killing} ||= 0;
+
+ while (my $e = shift @tempory::objects) { $e->DESTROY }
while (@interactive::objects > $o->{before_killing}) {
my $w = pop @interactive::objects;
$w->destroy;
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 29de8a794..7a21e168d 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -31,6 +31,7 @@ sub new {
Gtk->init;
my $o = bless { %opts }, $type;
$o->_create_window($title);
+ while (my $e = shift @tempory::objects) { $e->DESTROY }
push @interactive::objects, $o unless $opts{no_interactive_objects};
top(@grabbed)->grab_remove if @grabbed;