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 683317 - Leak in gtk_widget_accessible_get_description()
Leak in gtk_widget_accessible_get_description()
Status: RESOLVED DUPLICATE of bug 643611
Product: gtk+
Classification: Platform
Component: Accessibility
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 683812 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-09-04 08:22 UTC by Claudio Saavedra
Modified: 2012-09-11 17:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Claudio Saavedra 2012-09-04 08:22:55 UTC
This method is returning a const gchar, but it fallbacks to gtk_widget_get_tooltip_text(), which doesn't. I guess you need to cache this somehow.

==28316== 176 bytes in 4 blocks are definitely lost in loss record 19,481 of 22,433
==28316==    at 0x4A0884D: malloc (vg_replace_malloc.c:263)
==28316==    by 0x8D7C467: standard_malloc (gmem.c:85)
==28316==    by 0x8D7C4F0: g_malloc (gmem.c:159)
==28316==    by 0x8D7C81B: g_malloc_n (gmem.c:400)
==28316==    by 0x8D97095: g_strdup (gstrfuncs.c:364)
==28316==    by 0x8D070BC: value_lcopy_string (gvaluetypes.c:314)
==28316==    by 0x8CE46D1: g_object_get_valist (gobject.c:2021)
==28316==    by 0x8CE4A6D: g_object_get (gobject.c:2109)
==28316==    by 0x85E1277: gtk_widget_get_tooltip_text (gtkwidget.c:13301)
==28316==    by 0x8654E12: gtk_widget_accessible_get_description (gtkwidgetaccessible.c:140)
==28316==    by 0x8945E30: atk_object_get_description (atkobject.c:754)
==28316==    by 0x65C0C08: append_cache_item (cache-adaptor.c:198)
==28316==    by 0x65C0F16: emit_cache_add (cache-adaptor.c:279)
==28316==    by 0x8CDF4E8: g_cclosure_marshal_VOID__OBJECTv (gmarshal.c:1312)
==28316==    by 0x8CDAA70: _g_closure_invoke_va (gclosure.c:840)
==28316==    by 0x8CF655D: g_signal_emit_valist (gsignal.c:3211)
==28316==    by 0x8CF770F: g_signal_emit (gsignal.c:3356)
==28316==    by 0x65B4BC1: add_object (accessible-cache.c:199)
==28316==    by 0x65B4EF8: add_pending_items (accessible-cache.c:307)
==28316==    by 0x8D769D8: g_idle_dispatch (gmain.c:4797)
Comment 1 Claudio Saavedra 2012-09-11 17:20:13 UTC
*** Bug 683812 has been marked as a duplicate of this bug. ***
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-09-11 17:37:30 UTC

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