mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
Fix some missing va_ends
Found by Coverity. https://bugzilla.gnome.org/show_bug.cgi?id=689496
This commit is contained in:
parent
039ba910f0
commit
fbcab5f097
@ -776,15 +776,16 @@ clutter_list_model_new (guint n_columns,
|
||||
{
|
||||
g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (type));
|
||||
g_object_unref (model);
|
||||
return NULL;
|
||||
model = NULL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
_clutter_model_set_column_type (model, i, type);
|
||||
_clutter_model_set_column_name (model, i, name);
|
||||
}
|
||||
|
||||
out:
|
||||
va_end (args);
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
|
@ -1206,6 +1206,10 @@ clutter_animator_set (ClutterAnimator *animator,
|
||||
|
||||
object = first_object;
|
||||
property_name = first_property_name;
|
||||
|
||||
g_return_if_fail (object);
|
||||
g_return_if_fail (property_name);
|
||||
|
||||
mode = first_mode;
|
||||
progress = first_progress;
|
||||
|
||||
@ -1218,9 +1222,6 @@ clutter_animator_set (ClutterAnimator *animator,
|
||||
GValue value = G_VALUE_INIT;
|
||||
gchar *error = NULL;
|
||||
|
||||
g_return_if_fail (object);
|
||||
g_return_if_fail (property_name);
|
||||
|
||||
klass = G_OBJECT_GET_CLASS (object);
|
||||
pspec = g_object_class_find_property (klass, property_name);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
g/*
|
||||
* Clutter.
|
||||
*
|
||||
* An OpenGL based 'interactive canvas' library.
|
||||
@ -991,11 +991,12 @@ clutter_state_set (ClutterState *state,
|
||||
|
||||
property_name = first_property_name;
|
||||
mode = first_mode;
|
||||
va_start (args, first_mode);
|
||||
|
||||
g_return_if_fail (G_IS_OBJECT (first_object));
|
||||
g_return_if_fail (first_property_name);
|
||||
|
||||
va_start (args, first_mode);
|
||||
|
||||
while (object != NULL)
|
||||
{
|
||||
GParamSpec *pspec;
|
||||
|
Loading…
Reference in New Issue
Block a user