GNOME Bugzilla – Bug 315027
Memory leak in helloworld.c
Last modified: 2005-11-24 14:40:11 UTC
Decoder sink obtained by gst_element_get_pad in new_pad callback is not dereferenced. The problematic code is /* We can now link this pad with the audio decoder */ g_print ("Dynamic pad created, linking parser/decoder\n"); gst_pad_link (pad, gst_element_get_pad (decoder, "sink")); I have tried to get the pad in the main function and print reference count before return statement (after cleanup). The result was 2 (one for the instance referenced in new_pad() function and one for the instance from main()) whereas only 1 was expected.
Fixed in cvs. Thanks.