From ac667d819bf1f91fd4190d2f3aac2a91f07723f5 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 21 Jan 2003 11:57:44 +0000 Subject: since gtkset_mousecursor is called by a timeout, don't leak memory because it can lead to problems on the long term --- perl-install/ugtk2.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') 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 { -- cgit v1.2.1