Fixed memory leak - as stated by the documentation, the result of class_copyPropertyList must be freed