diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-21 11:57:44 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-21 11:57:44 +0000 |
commit | ac667d819bf1f91fd4190d2f3aac2a91f07723f5 (patch) | |
tree | 51efee4c5bc54ebcda4ce86f3a70f0e1709471c3 /perl-install | |
parent | baa29963dde07354dbdd4d7bb17388d17a7f43a4 (diff) | |
download | drakx-backup-do-not-use-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar drakx-backup-do-not-use-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar.gz drakx-backup-do-not-use-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar.bz2 drakx-backup-do-not-use-ac667d819bf1f91fd4190d2f3aac2a91f07723f5.tar.xz drakx-backup-do-not-use-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')
-rw-r--r-- | perl-install/ugtk2.pm | 3 |
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 { |