mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
free the entries and strings
Original commit message from CVS: free the entries and strings
This commit is contained in:
parent
9a011a79c0
commit
46ac5c55c2
1 changed files with 12 additions and 2 deletions
|
@ -504,15 +504,25 @@ gst_props_destroy (GstProps *props)
|
||||||
while (entries) {
|
while (entries) {
|
||||||
GstPropsEntry *entry = (GstPropsEntry *)entries->data;
|
GstPropsEntry *entry = (GstPropsEntry *)entries->data;
|
||||||
|
|
||||||
/* FIXME also free the lists */
|
switch (entry->propstype) {
|
||||||
|
case GST_PROPS_STRING_ID:
|
||||||
|
g_free (entry->data.string_data.string);
|
||||||
|
break;
|
||||||
|
/* FIXME also free the lists */
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
g_mutex_lock (_gst_props_entries_chunk_lock);
|
g_mutex_lock (_gst_props_entries_chunk_lock);
|
||||||
g_mem_chunk_free (_gst_props_entries_chunk, entry);
|
g_mem_chunk_free (_gst_props_entries_chunk, entry);
|
||||||
g_mutex_unlock (_gst_props_entries_chunk_lock);
|
g_mutex_unlock (_gst_props_entries_chunk_lock);
|
||||||
|
|
||||||
entries = g_list_next (entries);
|
entries = g_list_next (entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_list_free (props->properties);
|
g_list_free (props->properties);
|
||||||
|
|
||||||
|
g_mutex_lock (_gst_props_chunk_lock);
|
||||||
|
g_mem_chunk_free (_gst_props_chunk, props);
|
||||||
|
g_mutex_unlock (_gst_props_chunk_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue