diff options
Diffstat (limited to '')
-rw-r--r-- | dom/cache/CacheStreamControlParent.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/cache/CacheStreamControlParent.cpp b/dom/cache/CacheStreamControlParent.cpp index aaab59f944..8441d5cee4 100644 --- a/dom/cache/CacheStreamControlParent.cpp +++ b/dom/cache/CacheStreamControlParent.cpp @@ -149,9 +149,11 @@ void CacheStreamControlParent::SetStreamList( void CacheStreamControlParent::CloseAll() { NS_ASSERT_OWNINGTHREAD(CacheStreamControlParent); - NotifyCloseAll(); QM_WARNONLY_TRY(OkIf(SendCloseAll())); + + // Attention: NotifyCloseAll potentially destroys our this synchronously! + NotifyCloseAll(); } void CacheStreamControlParent::Shutdown() { |