After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 315027 - Memory leak in helloworld.c
Memory leak in helloworld.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
git master
Other Linux
: Normal normal
: 0.9.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-09-01 12:52 UTC by Michal Benes
Modified: 2005-11-24 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michal Benes 2005-09-01 12:52:05 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.
Comment 1 Michael Smith 2005-11-24 14:40:11 UTC
Fixed in cvs. Thanks.