metadata: unset iterator value before breaking or returning from loop

This commit is contained in:
Julian Bouzas 2021-12-13 11:00:51 -05:00 committed by George Kiagiadakis
parent 6d7ae691b3
commit 4679a4ed71

View file

@ -472,6 +472,7 @@ wp_metadata_find (WpMetadata * self, guint32 subject, const gchar * key,
if (g_strcmp0 (k, key) == 0) {
if (type)
*type = t;
g_value_unset (&val);
return v;
}
}