Enable poisoning

Original commit message from CVS:
Enable poisoning
This commit is contained in:
David Schleef 2003-12-18 03:55:40 +00:00
parent 91b84eb539
commit 945bc373d1
2 changed files with 9 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}