Let the utility layer handle dynamic growth of the inter-view pictures
array. By definition, setting a new size to the array will effectively
grow the array, but would also fill in the newly created elements with
empty entries (NULL), thus also increasing the reported length, which
is not correct.
guint i;
// Resize array of inter-view references
- if (priv->inter_views)
- g_ptr_array_set_size(priv->inter_views, priv->max_views);
- else {
+ if (!priv->inter_views) {
priv->inter_views = g_ptr_array_new_full(priv->max_views,
(GDestroyNotify)unref_inter_view);
if (!priv->inter_views)