Use the correct index for program.previouslyshown in the query result.

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>
(cherry picked from commit 25aa598fda8fce1d1ed36c68b9da75ebfd1c7476)
OpenGLVideo: Fix a double free in AddFilter() when OptimiseFilters() fails

Fixes #11430
MythUI: Fix use after free in MythUIEditBar

The call to ReleaseImages() in MythUIEditBar's dtor caused a free memory read
since SetRedraw() accesses its parent whose dtor has already been called.

Calling ReleaseImages() from MythUIEditBar's dtor also isn't necessary since the
images in m_images are children of MythUIEditBar and are automatically deleted
by Qt.

Fixes #11458, Refs #11402
mythzmserver: Add a proper check for a failed call to mmap()

Should be checking for MAP_FAILED not NULL. Also add some additional debugging
showing why we failed to open the mmap file. Fixes #11187.

(cherry picked from commit 52b277397431dd88a337e46a7d64fea89c8037c0)

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
Merge remote-tracking branch 'upstream/master'