Browse Source
			
			
			
			
				
		DeleteBuffer took a std::shared_ptr by value. This means it claims to take (and keep) part-ownership of the pointed-to item. However, this function does not take any ownership or change the item, it just refers to it. It also does not null-check the pointer. So it should be a const reference to the item. Ownership semantics are then: the caller retains ownership while the function executes. (It also saves a shared_ptr ref count, but that won't be important here).jobs
				 3 changed files with 19 additions and 12 deletions
			
			
		
					Loading…
					
					
				
		Reference in new issue