# Garbage collection

**URL:** <https://forum.kirupa.com/t/garbage-collection/276045>\
**Category:** Uncategorized\
**Created:** [November 21, 2008, 5:34pm UTC](https://forum.kirupa.com/t/garbage-collection/276045 "2008-11-21T17:34:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DashMasterful](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Post date:** [November 21, 2008, 5:34pm UTC](https://forum.kirupa.com/t/garbage-collection/276045/1 "2008-11-21T17:34:54Z")

</div>

SoundHolder.playSound(Object(root).meterAlert,0,0,new SoundTransform(.1));

does ‘new SoundTransform()’ automatically get garbage collected since I’m not pointing anything to it or does it stay in memory
