Commit b6f6b076 authored by Daniel Williams's avatar Daniel Williams
Browse files

Added destructors for the swig objects.

parent 9cde3561
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -46,10 +46,13 @@ class Waveform(object):
        try:
            lal.DestroyREAL8Sequence(self.hp)
            lal.DestroyREAL8Sequence(self.hx)
        except:
            print "Failed to destroy hp and hx"
        try:
            lal.DestroyREAL8Sequence(self.hp0)
            lal.DestroyREAL8Sequence(self.hx0)
        except:
            pass
            print "Failed to destroy hp0 and hx0"
            
    def _clear_params(self):
        self.params = {}