424514f patch to latest git, fixes some memory leak and crash issues

Authored and Committed by adamwill 10 years ago
    patch to latest git, fixes some memory leak and crash issues
    
        
file modified
+7 -1