mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
(gtk) in makemeta-ui.c, don't rely on g_clear_pointer()... our GLIB_MINIMUM is 2.32.0
This commit is contained in:
parent
2e7c9e15bd
commit
63fb848f3e
1 changed files with 5 additions and 1 deletions
|
@ -326,7 +326,11 @@ updatePiecesLabel (MakeMetaUI * ui)
|
|||
static void
|
||||
setFilename (MakeMetaUI * ui, const char * filename)
|
||||
{
|
||||
g_clear_pointer (&ui->builder, (GDestroyNotify)tr_metaInfoBuilderFree);
|
||||
if (ui->builder != NULL)
|
||||
{
|
||||
tr_metaInfoBuilderFree (ui->builder);
|
||||
ui->builder = NULL;
|
||||
}
|
||||
|
||||
if (filename)
|
||||
ui->builder = tr_metaInfoBuilderCreate (filename);
|
||||
|
|
Loading…
Reference in a new issue