plug-ins: fix several memory leaks in metadata-editor.
(cherry picked from commit 184b803811
)
This commit is contained in:
@ -1973,6 +1973,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
|
||||
gchar *value_utf;
|
||||
|
||||
value_utf = clean_xmp_string (value);
|
||||
g_free (value);
|
||||
|
||||
if (! strcmp ("single", imageSupplierInfoTags[i].mode))
|
||||
{
|
||||
@ -1985,6 +1986,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
|
||||
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
|
||||
gtk_text_buffer_set_text (buffer, value_utf, -1);
|
||||
}
|
||||
g_free (value_utf);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2003,11 +2005,13 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
|
||||
gchar *value_utf;
|
||||
|
||||
value_utf = clean_xmp_string (value);
|
||||
g_free (value);
|
||||
|
||||
if (! strcmp ("single", locationCreationInfoTags[i].mode))
|
||||
{
|
||||
gtk_entry_set_text (GTK_ENTRY (widget), value_utf);
|
||||
}
|
||||
g_free (value_utf);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2027,6 +2031,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
|
||||
gchar *value_utf;
|
||||
|
||||
value_utf = clean_xmp_string (value);
|
||||
g_free (value);
|
||||
|
||||
if (! strcmp ("single", creatorContactInfoTags[i].mode))
|
||||
{
|
||||
@ -2038,6 +2043,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
|
||||
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
|
||||
gtk_text_buffer_set_text (buffer, value_utf, -1);
|
||||
}
|
||||
g_free (value_utf);
|
||||
}
|
||||
}
|
||||
|
||||
@ -3601,6 +3607,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), data);
|
||||
}
|
||||
}
|
||||
g_free (value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user