Fix memory leaks & Use correct "delete" for arrays
Fix event pump order on ios when we drop in deeper message loop.
bump samba for darwin from 3.6.0 to 3.6.12
[rbp] Fix for broken ASS subtitles.

The video fifo patch broke some types of subtitles including ASS.
This keeps closer track of when the sleep time would have ended and calls FlipPage at the appropriate time.
I've also removed the 500ms in the sleep time calculation as that makes the subs render 500ms late. Not sure what its purpose was.
Fix the result of Player.GetProperties with param "currentaudiostream" for video without an audio stream (index = -1).
Merge pull request #2222 from ace20022/jsonrpc2

[json-rpc] fix Player.GetProperties' result "currentaudiostream" if there is no audio stream
Merge pull request #2206 from popcornmix/fix_video_fifo_ass

[rbp] Fix for broken ASS subtitles.
Merge pull request #2219 from ulion/bump_darwin_samba_3_6_12

bump samba for darwin from 3.6.0 to 3.6.12

Fixes access to samba server running on osx 10.7 and later (was worked around by custom samba package via smbup which is superseeded by this).
[osx] fixs #13907, fixes #13740 and tastes good too. VDA issues on intel/ati GPUs
Merge pull request #2208 from asmaloney/mem_problems

Fix memory leaks & use correct "delete" for arrays
Fix typo

Getiing -> Getting
Merge pull request #2226 from uNiversaI/patch-1

Fix typo
[WIN32][AE] fixed: DirectSound supports more than 2 channels.
[WIN32][AE] fixed: samplerate can be at least 192kHz (probably more?)
[osx] fixed again, not all GPU are named the same
AE: Linux AE - some fixes of yesterday merge (Enumerate + Resume)
AE: in doubt restore old suspend behaviour
AE: Choose indirection when possible. Care for lazy evaluation
jsonrpc: bump version to 6.0.1 after fix in 44916b33908f77692d8838446035de3e3bc10ca1
[WIN32][AE] fixed: supported channels should be between 2 and 8