mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
return immediately in a non-void Signal if there are no handlers
This allows r.begin(() to not refer to undefined memory
This commit is contained in:
parent
9deee4df7c
commit
2a7bef47fa
1 changed files with 4 additions and 0 deletions
|
|
@ -503,6 +503,10 @@ SignalWithCombiner<Combiner, R(A...)>::operator() (A... a)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (s.empty()) {
|
||||||
|
return typename Combiner::result_type ();
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<R,PBD::StackAllocator<R,nslots> > r;
|
std::vector<R,PBD::StackAllocator<R,nslots> > r;
|
||||||
slot_function_type functor;
|
slot_function_type functor;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue