From: Christoph Egger Date: Tue, 2 Jun 2015 21:15:15 +0000 (+0200) Subject: Pass NewFunctionEvents as objects, not pointers X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=f9d8bd4a0312a92a1ec3493e83996c0a99d8d1bf;hp=f9d8bd4a0312a92a1ec3493e83996c0a99d8d1bf Pass NewFunctionEvents as objects, not pointers The current assumption -- emit will only return once all signal handlers are done -- is false when cross-thread signals happen. Therefore we can't assume the stack-allocated event is alive long enough to just pass pointers. We're copying that object now which should be pretty small and don't get any memory leaks or lifeness problems. ---