How can i flush the RAM to prevent 'GL out of memory' ?

    Jun 23 2016 | 11:08 am
    I am using the object to playback video with great success (finally i can play hd content smoothly!). One issue i have though is that every time i load a new video it somehow takes up a bit of memory in my RAM (maybe like 10mb) that i cant delete, and over time this builds up and eventually crashes the whole system saying that 'GL out of memory'.
    Does anybody know how i can manually flush the RAM to prevent this crash ?