mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	libcamera: free the FrameBufferAllocator buffers before deleting it
The libcamera application developer guide mentions that buffers allocated by the FrameBufferAllocator must be explicitly freed before deleting it.
This commit is contained in:
		
							parent
							
								
									21c412dc49
								
							
						
					
					
						commit
						ce9f75abaa
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -532,6 +532,7 @@ extern "C" {
 | 
				
			||||||
    	spa_log_info(this->log_, "Stopping camera ...");
 | 
					    	spa_log_info(this->log_, "Stopping camera ...");
 | 
				
			||||||
    	this->cam_->stop();
 | 
					    	this->cam_->stop();
 | 
				
			||||||
    	if(this->allocator_) {
 | 
					    	if(this->allocator_) {
 | 
				
			||||||
 | 
							this->allocator_->free(stream);
 | 
				
			||||||
	    	delete this->allocator_;
 | 
						    	delete this->allocator_;
 | 
				
			||||||
	    	this->allocator_ = nullptr;
 | 
						    	this->allocator_ = nullptr;
 | 
				
			||||||
    	}
 | 
					    	}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue