mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	webp: fix memory leak when using Mux API
This commit is contained in:
		
							parent
							
								
									4930b66aa9
								
							
						
					
					
						commit
						fef9c7001d
					
				
							
								
								
									
										1
									
								
								_webp.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								_webp.c
									
									
									
									
									
								
							| 
						 | 
					@ -189,6 +189,7 @@ PyObject* WebPDecode_wrapper(PyObject* self, PyObject* args)
 | 
				
			||||||
            exif = PyBytes_FromStringAndSize((const char*)exif_data.bytes, exif_data.size);
 | 
					            exif = PyBytes_FromStringAndSize((const char*)exif_data.bytes, exif_data.size);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        WebPDataClear(&image.bitstream);
 | 
				
			||||||
        WebPMuxDelete(mux);
 | 
					        WebPMuxDelete(mux);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user