break;
}
- copy->private_data_bytes = g_slice_copy (source->private_data_length,
- source->private_data_bytes);
+ copy->private_data_bytes = g_memdup (source->private_data_bytes,
+ source->private_data_length);
return copy;
}
break;
}
- if (source->private_data_bytes)
- g_slice_free1 (source->private_data_length, source->private_data_bytes);
+ g_free (source->private_data_bytes);
g_slice_free (GstMpegtsDVBLinkageDescriptor, source);
}
copy = g_slice_dup (GstMpegtsExtendedEventDescriptor, source);
copy->items = g_ptr_array_ref (source->items);
- copy->text = g_slice_copy (sizeof (source->text), source->text);
+ copy->text = g_strdup (source->text);
return copy;
}
copy = g_slice_dup (GstMpegtsDataBroadcastDescriptor, source);
- copy->selector_bytes = g_slice_copy (source->length, source->selector_bytes);
+ copy->selector_bytes = g_memdup (source->selector_bytes, source->length);
copy->language_code = g_strdup (source->language_code);
copy->text = g_strdup (source->text);