va_start should be paired with va_end

Closes https://github.com/mate-desktop/pluma/pull/101
This commit is contained in:
monsta 2014-11-22 19:17:34 +03:00 committed by Stefano Karapetsas
parent 5d01c1ec9c
commit 6749c36f9d
1 changed files with 1 additions and 0 deletions

View File

@ -1152,6 +1152,7 @@ array_prop (const char *name, ...)
pv.value = value;
g_array_append_val (vals, pv);
}
va_end (ap);
prop->num_vals = vals->len;
prop->vals = (SmPropValue *)vals->data;