First of all, please attach /var/log/Xorg.0.log and the output of dmesg and glxinfo. The output from running the app with valgrind --leak-check=full (preferably with debugging symbols available for r600_dri.so) should be a good start to identify where the leaks are coming from.