mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-08 09:09:26 +00:00
Enable poisoning
Original commit message from CVS: Enable poisoning
This commit is contained in:
parent
91b84eb539
commit
945bc373d1
|
@ -177,6 +177,9 @@ void gst_caps2_free (GstCaps2 *caps)
|
|||
gst_structure_free (structure);
|
||||
}
|
||||
g_ptr_array_free(caps->structs, TRUE);
|
||||
#ifdef USE_POISONING
|
||||
memset (caps, 0xff, sizeof(GstCaps2));
|
||||
#endif
|
||||
g_free(caps);
|
||||
}
|
||||
|
||||
|
@ -209,6 +212,9 @@ void gst_caps2_append (GstCaps2 *caps1, GstCaps2 *caps2)
|
|||
gst_caps2_append_cap (caps1, structure);
|
||||
}
|
||||
g_ptr_array_free(caps2->structs, TRUE);
|
||||
#ifdef USE_POISONING
|
||||
memset (caps, 0xff, sizeof(GstCaps2));
|
||||
#endif
|
||||
g_free(caps2);
|
||||
}
|
||||
|
||||
|
|
|
@ -252,6 +252,9 @@ void gst_structure_free(GstStructure *structure)
|
|||
g_value_unset(&field->value);
|
||||
}
|
||||
}
|
||||
#ifdef USE_POISONING
|
||||
memset (structure, 0xff, sizeof(GstStructure));
|
||||
#endif
|
||||
g_free(structure);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue