summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-21 11:57:44 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-21 11:57:44 +0000
commitac667d819bf1f91fd4190d2f3aac2a91f07723f5 (patch)
tree51efee4c5bc54ebcda4ce86f3a70f0e1709471c3 /perl-install/ugtk2.pm
parentbaa29963dde07354dbdd4d7bb17388d17a7f43a4 (diff)
downloaddrakx-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar
drakx-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar.gz
drakx-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar.bz2
drakx-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar.xz
drakx-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.zip
since gtkset_mousecursor is called by a timeout, don't leak
memory because it can lead to problems on the long term
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index c4775b138..7f8ad2be0 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -173,7 +173,8 @@ sub gtkprepend_text {
sub gtkset_mousecursor {
my ($type, $w) = @_;
- ($w || gtkroot())->set_cursor(Gtk2::Gdk::Cursor->new($type));
+ ($w || gtkroot())->set_cursor(my $c = Gtk2::Gdk::Cursor->new($type));
+ $c->unref;
}
sub gtksignal_connect {