fix minor shutdown leak

This commit is contained in:
Charles Kerr 2008-02-09 17:25:14 +00:00
parent 7cf9f8cc35
commit 991a9f1659
1 changed files with 5 additions and 0 deletions

View File

@ -744,12 +744,17 @@ static void
torrent_cell_renderer_dispose( GObject * o )
{
TorrentCellRenderer * r = TORRENT_CELL_RENDERER( o );
GObjectClass * parent;
if( r && r->priv )
{
g_object_unref( G_OBJECT( r->priv->text_renderer ) );
g_object_unref( G_OBJECT( r->priv->text_renderer_err ) );
r->priv = NULL;
}
parent = g_type_class_peek( g_type_parent( TORRENT_CELL_RENDERER_TYPE ) );
parent->dispose( o );
}
static void