GNOME Bugzilla – Bug 151664
Purge timeout is never removed
Last modified: 2004-12-22 21:47:04 UTC
When adding a client, a timeout handler gets installed. If client doesn't register itself with the SM before the timer expires, then the client is moved to the purge lists. However, the timeout is *not* removed if the client is reincarnated in the meantime. Reincarnation frees the old client structure. Thus, when the timeout triggers, the callback accesses free()d memory. The attached patch fixes this. This patch also needs to go in the gnome-2-6 branch.
Created attachment 31196 [details] [review] Patch to remove the purge timeout.
Patch looks good Federico, I can't believe this is all it was in the end. Thanks much :-) One comment - it'd be nice to s/gtk_timeout_add/g_timeout_add/ while you're there. Feel free to commit once you've got approval from the release team.
Oh, and after the freeze it would be good to get the debuggin patch you put on your blog committed
Committed to both the gnome-2-6 and HEAD branches.