Commit 1591fb9f authored by Naohiro KORIYAMA's avatar Naohiro KORIYAMA Committed by Felix Paul Kühne

Fix memory leak in video_output on Mac OS X (close #6267)

huge numbers of memory leaks happens because subpictures are not deleted.
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit 06430f7c2468d5f8004bad8c7ff146d5a1dcebbb)
parent 8cbe58b2
......@@ -302,7 +302,8 @@ static void PictureDisplay(vout_display_t *vd, picture_t *pic, subpicture_t *sub
picture_Release (pic);
sys->has_first_frame = true;
(void)subpicture;
if (subpicture)
subpicture_Delete(subpicture);
}
static int Control (vout_display_t *vd, int query, va_list ap)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment