After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 305037 - iconv_cache_destroy() does not exist
iconv_cache_destroy() does not exist
Status: RESOLVED DUPLICATE of bug 64096
Product: glib
Classification: Platform
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2005-05-21 21:05 UTC by Denis Vlasenko
Modified: 2005-05-21 23:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Denis Vlasenko 2005-05-21 21:05:38 UTC
glib/gconvert.c:
iconv_cache_init() has no conterpart which destroys iconv cache.
There is no way to free up iconv cache on program exit.
It makes life of leak detection tools harder.

Observed to leave 2x32k still allocated when Mozilla exits:

32640 bytes in 1 blocks are still reachable in loss record 5392 of 5392
   at 0x341462B4: malloc
   by 0x34A6EA99: __gconv_open
   by 0x34A6E540: iconv_open (libc-2.3.2.so)
   by 0x34826ECA: try_conversion
   by 0x34826F6A: g_iconv_open
   by 0x34827410: open_converter
   by 0x34827872: g_convert
   by 0x34827C3E: g_convert_with_fallback
   by 0x346FADAF: gdk_utf8_to_string_target
   by 0x34700916: set_text_property (libgdk-x11-2.0.so.0.600.7)
   by 0x34700A80: set_wm_name (libgdk-x11-2.0.so.0.600.7)
   by 0x34700B92: gdk_window_set_title (libgdk-x11-2.0.so.0.600)
   by 0x346FDACD: gdk_window_new (libgdk-x11-2.0.so.0.600.7)
   by 0x346DC1DF: gdk_display_open (libgdk-x11-2.0.so.0.600.7)
...

64k wasted simply for setting window title? Kind of silly...

Can this cache be disabled at glib biuld time?
Comment 1 Owen Taylor 2005-05-21 23:13:45 UTC

*** This bug has been marked as a duplicate of 64096 ***