GNOME Bugzilla – Bug 685910
[PATCH] Make sure to ref objects when using them in an idle call
Last modified: 2012-10-21 10:11:08 UTC
This is downstream bug https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/1061158 In sources/rb-media-player-source.c, there are several idle callbacks made, but without ref'ing the object passed to them. Which seems to have happened in the downstream bug. Here's a patch for that file to ref/unref such idle calls.
Created attachment 226198 [details] [review] Proposed patch
Since the idle calls are all done in a sequence, starting in rb_media_player_source_sync and ending in sync_idle_cb_cleanup, so we should just add a ref at the start and release it at the end. Commit f2e5c20 does this. It would probably be better to cancel the sync operation on shutdown, but that's another matter.