ges: Fix sizeof() usage

The entries of the array are "gchar *" and not "gchar **"

CID #1427091
CID #1427120
This commit is contained in:
Edward Hervey 2018-01-11 10:57:30 +01:00 committed by Edward Hervey
parent da9b08c618
commit d91cc7e7b6
2 changed files with 2 additions and 2 deletions

View file

@ -301,7 +301,7 @@ ges_asset_extract_default (GESAsset * asset, GError ** error)
const gchar **names;
values = g_malloc0 (sizeof (GValue) * n_params);
names = g_malloc0 (sizeof (gchar **) * n_params);
names = g_malloc0 (sizeof (gchar *) * n_params);
for (i = 0; i < n_params; i++) {
values[i] = params[i].value;

View file

@ -1145,7 +1145,7 @@ ges_timeline_element_copy (GESTimelineElement * self, gboolean deep)
GValue *values;
const gchar **names;
values = g_malloc0 (sizeof (GValue) * n_specs);
names = g_malloc0 (sizeof (gchar **) * n_specs);
names = g_malloc0 (sizeof (gchar *) * n_specs);
for (i = 0; i < n_params; i++) {
values[i] = params[i].value;