]> git.siccegge.de Git - frida/frida.git/commit - src/gui/Mainwindow.cxx
Pass NewFunctionEvents as objects, not pointers
authorChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:15:15 +0000 (23:15 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:15:15 +0000 (23:15 +0200)
commitf9d8bd4a0312a92a1ec3493e83996c0a99d8d1bf
treeace43da785ac5be26a8162e192625fb5e9c77fe4
parentedf204645cccc7dfd4b2558f0fe6ab17675e6e2d
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.
src/core/InformationManager.cxx
src/core/InformationManager.hxx
src/gui/Mainwindow.cxx
src/gui/Mainwindow.hxx