[beast: 3/7] BSE: guard project against Aida calls after dispose()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 3/7] BSE: guard project against Aida calls after dispose()
- Date: Mon, 9 Oct 2017 22:43:53 +0000 (UTC)
commit 91ce07e8ff5930f88fc97e0fb092221555e42648
Author: Tim Janik <timj gnu org>
Date: Sat Oct 7 13:52:00 2017 +0200
BSE: guard project against Aida calls after dispose()
Signed-off-by: Tim Janik <timj gnu org>
bse/bseproject.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bse/bseproject.cc b/bse/bseproject.cc
index d52df30..d8fb24c 100644
--- a/bse/bseproject.cc
+++ b/bse/bseproject.cc
@@ -1003,7 +1003,7 @@ ProjectImpl::can_play ()
BseProject *self = as<BseProject*>();
/* playback works if we have supers other than wave repo */
gpointer wrepo = bse_project_get_wave_repo (self);
- return self->supers->data != wrepo || self->supers->next;
+ return self->supers && (self->supers->data != wrepo || self->supers->next);
}
bool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]