Memory leak fix (don't judge :P) and music playing check.