[beast: 3/7] BSE: guard project against Aida calls after dispose()



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]