#include #define ITERS 100000 #include #include "mem.h" int main (int argc, gchar *argv[]) { GstPad *pad; GstPadTemplate *padtempl; long usage1; gint i, iters; gst_init (&argc, &argv); if (argc == 2) iters = atoi (argv[1]); else iters = ITERS; g_print ("starting pad test\n"); usage1 = vmsize(); pad = gst_pad_new ("padname", GST_PAD_SINK); gst_object_unref (GST_OBJECT (pad)); g_print ("create/unref new pad %ld\n", vmsize()-usage1); for (i=0; i