# HG changeset patch # User John W. Eaton # Date 1323119293 18000 # Node ID 1221086f1ba56eb7f78e82ea27a3234aed1a0c84 # Parent 6e9bf84dec3c87eff9c4d6c771999411e3287d20 avoid segfault related to fontconfig memory management * txt-eng-ft.cc (ft_manager::instance_ok): Comment out code to add cleanup_instance to singleton_cleanup_list. diff -r 6e9bf84dec3c -r 1221086f1ba5 src/txt-eng-ft.cc --- a/src/txt-eng-ft.cc Mon Dec 05 02:03:35 2011 -0500 +++ b/src/txt-eng-ft.cc Mon Dec 05 16:08:13 2011 -0500 @@ -77,8 +77,14 @@ { instance = new ft_manager (); + // FIXME -- there seem to be some memory management errors + // related to fontconfig that cause segfaults when Octave + // exits if ft_manager::instance is explicitly deleted. So + // skip doing that for now. +#if 0 if (instance) singleton_cleanup_list::add (cleanup_instance); +#endif } if (! instance)