mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
Fix cleanup in g_markup_collect
Patch by Matt Barnes, https://bugzilla.gnome.org/show_bug.cgi?id=644428
This commit is contained in:
@@ -2794,9 +2794,8 @@ failure:
|
||||
|
||||
ptr = va_arg (ap, gpointer);
|
||||
|
||||
if (ptr == NULL)
|
||||
continue;
|
||||
|
||||
if (ptr != NULL)
|
||||
{
|
||||
switch (type & (G_MARKUP_COLLECT_OPTIONAL - 1))
|
||||
{
|
||||
case G_MARKUP_COLLECT_STRDUP:
|
||||
@@ -2815,12 +2814,10 @@ failure:
|
||||
*(gboolean *) ptr = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
type = va_arg (ap, GMarkupCollectType);
|
||||
attr = va_arg (ap, const char *);
|
||||
|
||||
if (written)
|
||||
written--;
|
||||
}
|
||||
va_end (ap);
|
||||
|
||||
|
Reference in New Issue
Block a user