GNOME Bugzilla – Bug 622374
Clean up totem-playlist destruction
Last modified: 2010-06-22 12:45:01 UTC
This patch cleans up totem-playlist destruction by unrefing GtkBuilder object on dispose
Created attachment 164291 [details] [review] Clean up totem-playlist destruction Unref GtkBuilder object playlist->priv->xml on dispose instead of unrefing objects it contains
I'd be inclined to make priv->xml local to the init function and just hold pointers to the save, up, down and remove buttons in TotemPlaylistPrivate. That way, we save a lot of the memory occupied by the GtkBuilder for the lifetime of TotemPlaylist. Then, only the top-level objects from the XML file need unreffing in the dispose function, as is currently the case.
Philip, I can write such patch a bit later.
Created attachment 164300 [details] [review] Clean up TotemPlaylist destruction Keep a hold of the widgets we're interested in, and unref the GtkBuilder ASAP.
Attachment 164300 [details] pushed as 1310287 - Clean up TotemPlaylist destruction