After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 102200 - NautilusView leaking
NautilusView leaking
Status: VERIFIED FIXED
Product: nautilus
Classification: Core
Component: general
0.x.x [obsolete]
Other Linux
: Normal critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 92404 99636 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-12-30 07:36 UTC by Jens Finke
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for NautilusViewFrame (463 bytes, patch)
2002-12-30 07:37 UTC, Jens Finke
none Details | Review

Description Jens Finke 2002-12-30 07:36:26 UTC
Quoting the initial mail of the thread:
http://mail.gnome.org/archives/desktop-devel-list/2002-December/msg00555.html

"I wonder how the lifecycle for a NautilusView is supposed to work.  Third
party views like gthumb image/catalog view or apotheke, which inherit from
a NautilusView object, don't get destroyed properly when you switch back
e.g. to a nautilus icon view. The most annyoing thing is that they
left there possible merged menu/toolbar items (for apotheke you still have
all your CVS commands in the menu)."
                                                                          
     
It seems the problem lies in the NautilusViewFrame object, which doesn't
free it's associeated view correctly. The attached patch works for me,
which means that the views ar not lurking around anymore after shutting
down nautilus and all the menus are correctly unmerged.

I've set the severity to critical because the dead but unfree'd           
                                                            views are
serious memory leaks.
Comment 1 Jens Finke 2002-12-30 07:37:34 UTC
Created attachment 13269 [details] [review]
patch for NautilusViewFrame
Comment 2 Paolo Bacchilega 2002-12-30 09:12:58 UTC
*** Bug 92404 has been marked as a duplicate of this bug. ***
Comment 3 Michael Meeks 2003-01-01 00:02:54 UTC
Hi Jens, it's not clear to me why you think we should do an extra
remote unref here ? it _seems_ that we've done so already when we
setup the view initially [ so as to ensure that the cnx. has only a
single ref held on it ]; - this sucks obviously.

It looks more likely to me - that things are not getting deactivated
correctly [ if as you say menu items are hanging around forever ] -
are you sure the ControlFrame is dying ?
Comment 4 Paolo Bacchilega 2003-01-02 10:55:58 UTC
*** Bug 99636 has been marked as a duplicate of this bug. ***
Comment 5 Dave Camp 2003-01-22 18:11:35 UTC
There was a refcount problem in nautilus_view_standard_main().  If you
were using this function, it should be fixed now.  If not, please reopen.
Comment 6 Jens Finke 2003-01-26 11:15:03 UTC
Thank you very much Dave. You fixed the most annoying bug for
NautilusView users.