Clear possible crash in media viewer.
This commit is contained in:
		
							parent
							
								
									78fedce2d5
								
							
						
					
					
						commit
						acd76fc97b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -4763,6 +4763,7 @@ void OverlayWidget::clearBeforeHide() {
 | 
				
			||||||
	_userPhotosData = std::nullopt;
 | 
						_userPhotosData = std::nullopt;
 | 
				
			||||||
	_collage = nullptr;
 | 
						_collage = nullptr;
 | 
				
			||||||
	_collageData = std::nullopt;
 | 
						_collageData = std::nullopt;
 | 
				
			||||||
 | 
						clearStreaming();
 | 
				
			||||||
	assignMediaPointer(nullptr);
 | 
						assignMediaPointer(nullptr);
 | 
				
			||||||
	_preloadPhotos.clear();
 | 
						_preloadPhotos.clear();
 | 
				
			||||||
	_preloadDocuments.clear();
 | 
						_preloadDocuments.clear();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue