From cea3d3dc1ddbd4f7eb34e1b6d1bd950be299252e Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Wed, 26 Dec 2012 14:49:57 +0100 Subject: [PATCH] buddy: fix memory leak at sipe_core_buddy_tooltip_info() --- src/core/sipe-buddy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/sipe-buddy.c b/src/core/sipe-buddy.c index 23e8f35f..f456f4e1 100644 --- a/src/core/sipe-buddy.c +++ b/src/core/sipe-buddy.c @@ -384,9 +384,11 @@ void sipe_core_buddy_tooltip_info(struct sipe_core_public *sipe_public, SIPE_ADD_BUDDY_INFO(_("Meeting about"), meeting_subject); } if (note) { + gchar *note_italics = g_strdup_printf("%s", note); SIPE_DEBUG_INFO("sipe_tooltip_text: %s note: '%s'", uri, note); SIPE_ADD_BUDDY_INFO_NOESCAPE(is_oof_note ? _("Out of office note") : _("Note"), - g_strdup_printf("%s", note)); + note_italics); + g_free(note_italics); } if (access_text) { SIPE_ADD_BUDDY_INFO(_("Access level"), access_text); -- 2.11.4.GIT