projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed74299
)
catch a potential segfault (unload session)
author
Robin Gareus
<robin@gareus.org>
Thu, 10 Dec 2015 11:46:24 +0000
(12:46 +0100)
committer
Robin Gareus
<robin@gareus.org>
Thu, 10 Dec 2015 11:46:24 +0000
(12:46 +0100)
gtk2_ardour/ardour_ui.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/ardour_ui.cc
b/gtk2_ardour/ardour_ui.cc
index c6a0f4f27aebe3f27ccf88ebe74273db21a2b156..564230a8d6c70750c7cea0edfcdce8e0eaf67788 100644
(file)
--- a/
gtk2_ardour/ardour_ui.cc
+++ b/
gtk2_ardour/ardour_ui.cc
@@
-2123,9
+2123,13
@@
ARDOUR_UI::toggle_roll (bool with_abort, bool roll_out_of_bounded_mode)
void
ARDOUR_UI::toggle_session_auto_loop ()
{
+ if (!_session) {
+ return;
+ }
+
Location * looploc = _session->locations()->auto_loop_location();
- if (!
_session || !
looploc) {
+ if (!looploc) {
return;
}