hoelzro/Mac-FSEvents — pull request #2 by preaction (2014-12-14 02:15:04+00:00)
Title: path argument must not be ref or will segfault

If you give a reference argument to the constructor, the program will
segfault at FSEventStreamCreate().

Since I think it's better to use XS as little as possible, I wrote the
check in the Perl code and moved the underlying XS constructor to a
private method.

An alternative could be to force stringification of the argument, but
that's up for discussion. This at least prevents very terrible things
from happening.