fix minor shutdown leak
This commit is contained in:
parent
7cf9f8cc35
commit
991a9f1659
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue