1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +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:
Jordan Lee 2013-01-05 00:19:11 +00:00
parent 2e7c9e15bd
commit 63fb848f3e

View file

@ -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);