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 347446 - fix leaks
fix leaks
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-13 20:11 UTC by William Jon McCann
Modified: 2006-08-30 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (199.40 KB, patch)
2006-07-13 23:44 UTC, William Jon McCann
none Details | Review
resynced patch (33.60 KB, patch)
2006-07-14 12:46 UTC, William Jon McCann
committed Details | Review
patch (139.53 KB, patch)
2006-07-14 21:22 UTC, William Jon McCann
none Details | Review
patch + few more fixes (140.22 KB, patch)
2006-07-17 11:01 UTC, James "Doc" Livingston
none Details | Review
updated patch (164.83 KB, patch)
2006-07-17 14:48 UTC, William Jon McCann
committed Details | Review
patch (196.47 KB, patch)
2006-07-17 21:22 UTC, William Jon McCann
none Details | Review
resync with cvs (196.19 KB, patch)
2006-07-19 15:39 UTC, William Jon McCann
none Details | Review
updated patch (225.39 KB, patch)
2006-07-21 21:34 UTC, William Jon McCann
committed Details | Review
patch (87.46 KB, patch)
2006-07-24 17:23 UTC, William Jon McCann
none Details | Review
updated patch (84.43 KB, patch)
2006-07-25 01:59 UTC, James "Doc" Livingston
committed Details | Review

Description William Jon McCann 2006-07-13 20:11:48 UTC
drip, drip... Patch coming.
Comment 1 William Jon McCann 2006-07-13 23:44:29 UTC
Created attachment 68890 [details] [review]
patch

First pass.  Lots of fixes.  We were leaking just about every entry-view, never disposing podcast-source, not unreffing objects and disconnecting signals in properties...

OK to commit?
Comment 2 William Jon McCann 2006-07-13 23:51:49 UTC
Damn that patch is unreadable with all the whitespace changes...  OK if I just go ahead remove the whitespace crap once and for all?  Then I'll resync this patch.
Comment 3 James "Doc" Livingston 2006-07-14 09:48:37 UTC
I haven't combed through it checking everything, but it works well here.
Comment 4 William Jon McCann 2006-07-14 12:46:57 UTC
Created attachment 68920 [details] [review]
resynced patch

I committed the whitespace parts of the change separately.  Here is the same patch without the whitespace changes.
Comment 5 William Jon McCann 2006-07-14 21:22:58 UTC
Created attachment 68948 [details] [review]
patch

Second pass.  Not tested a lot.  Seems to fix all the leaked references so that the db is finalized!
Comment 6 James "Doc" Livingston 2006-07-17 11:01:10 UTC
Created attachment 69032 [details] [review]
patch + few more fixes

Looks good to me - this has a few additional leak fixes I noticed.
Comment 7 William Jon McCann 2006-07-17 14:48:35 UTC
Created attachment 69047 [details] [review]
updated patch

This is an update that fixes an uninitialized variable from the last patch and a reference counting error on action_groups that has been there all along.
Comment 8 William Jon McCann 2006-07-17 21:22:52 UTC
Created attachment 69071 [details] [review]
patch

Lots more... This gets us a lot closer to being able to finalize RhythmDBEntry's.  There are a handful of leaked refs now rather than hundreds or thousands.
Comment 9 William Jon McCann 2006-07-19 15:39:08 UTC
Created attachment 69180 [details] [review]
resync with cvs

Same patch.  Resynced with CVS.  Looks like part of the last patch was fixed by the patch from bug #347985.

Does this look OK?
Comment 10 James "Doc" Livingston 2006-07-20 09:15:13 UTC
Seems okay from my testing.
Comment 11 James "Doc" Livingston 2006-07-20 14:44:04 UTC
Actually, maybe not - there seems to be an extraneous unref/missing ref somewhere. When the playing song finishes, it's refcount seems to ends up one lower then it was, which will eventually remove all the refs to it and explode.
Comment 12 William Jon McCann 2006-07-21 21:34:11 UTC
Created attachment 69363 [details] [review]
updated patch

Good catch.  This should fix it.
Comment 13 James "Doc" Livingston 2006-07-23 09:41:35 UTC
Looks okay to me
Comment 14 William Jon McCann 2006-07-24 17:23:42 UTC
Created attachment 69510 [details] [review]
patch

This focuses on ref leaks of query-models.  Also prevents dispose from running twice on a few sources.
Comment 15 James "Doc" Livingston 2006-07-25 01:59:02 UTC
Created attachment 69546 [details] [review]
updated patch

Fixes a few typos and the like. This seems to work from my quick testing.


One of the causes of these leaks is probably that our API is very inconsistent as to whether it returns a new or borrowed reference to things, which also causes issues for the bindings.

It might be worth going through everything and making it always return a copy/referenced object unless it's documented (API docs. yay) to do otherwise.
Comment 16 William Jon McCann 2006-07-25 12:12:30 UTC
Cool.  Thanks for catching that typo.  I've committed this.

Yeah, we should probably go over the whole public API and make sure things make sense.  That would probably be a good time to try to document it. :)

So, the only thing left as far as leakage goes is the final few refs on entries.
Comment 17 James "Doc" Livingston 2006-08-03 03:42:13 UTC
Marking patch committed, since it was.
Comment 18 William Jon McCann 2006-08-30 18:50:29 UTC
We'll consider this fixed.