OP2/PyOP2 — pull request #62 by wence- (2012-09-24 10:42:58+00:00)
Title: Allow python GC to clean up core op_mat objects

Add a __del__ method to runtime_base and op_lib_core Mat objects. The
former explicitly calls __del__ on the latter which just destroys the
C level matrix object and sets the pointer to NULL, the _lib_handle is
then set to None.

This fixes memory leaks in the case where we do:

for i in range(...):
mat = op2.Mat(...)