mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
fix minor shutdown leak
This commit is contained in:
parent
7cf9f8cc35
commit
991a9f1659
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue