Fix segfault when freetype-yuvp is set to 1 in vlcrc.
commita99b43de32abc4aa1d9cf9e046b6ba6753dd2fc1
authorAlexis Ballier <aballier@gentoo.org>
Mon, 25 Jan 2010 21:42:31 +0000 (25 22:42 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Jan 2010 21:53:22 +0000 (25 22:53 +0100)
tree618d3f1a4e4e2cfd76dcc2c498197d3b3d909937
parenta4e4c285946ef854d02f6ae1dc07f984149ca093
Fix segfault when freetype-yuvp is set to 1 in vlcrc.

Allocate a palette for the format/region and reuse it. subpicture_region_Delete should take care of freeing it, but please someone double checks this to be sure.

Reported by: Alexander Stein
References: https://bugs.gentoo.org/show_bug.cgi?id=300406
modules/misc/freetype.c