unref and memleak

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

unref and memleak

Vineeth-2
Hi all,
  I wrote a sample code and was checking the behavior of gst_object_unref(); Apparently I had forgotten to unref a pad after gst_element_get_static_pad() ;
  However valgrind did not throw up any warning / error regarding memory leak. So does the gstreamer framework take care of this during program exit?
Thanks,
Vineeth.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: unref and memleak

Stefan Sauer
vineeth wrote:
> Hi all,
>   I wrote a sample code and was checking the behavior of
> gst_object_unref(); Apparently I had forgotten to unref a pad after
> gst_element_get_static_pad() ;
>   However valgrind did not throw up any warning / error regarding
> memory leak. So does the gstreamer framework take care of this during
> program exit?
everything goes when the program exits. To avoid resources piling up,
you should try to find the correct place for the unref() still.

Stefan

> Thanks,
> Vineeth.
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel