fix lot of memory leaks
Merge branch 'master' into ios

Conflicts:
	python/ffmpeg/_ffmpeg.pxi