Very simple: destroy(s) (or s.destroy but i prefer destroy(s)) will set the reference it is passed to null because you aren't supposed to use it anymore.

So after calling destroy(s), s is null, so it segfaults when you try to use it.

Reply via email to