--- plugins/messages-tracker.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/messages-tracker.c b/plugins/messages-tracker.c index eebfca3..218a016 100644 --- a/plugins/messages-tracker.c +++ b/plugins/messages-tracker.c @@ -40,7 +40,7 @@ struct message_folder { struct session { char *cwd; struct message_folder *folder; - const char *name; + char *name; uint16_t max; uint16_t offset; void *user_data; @@ -279,6 +279,7 @@ static gboolean async_get_folder_listing(void *s) { session->user_data); g_free(path); + g_free(session->name); return FALSE; } @@ -289,7 +290,7 @@ int messages_get_folder_listing(void *s, const char *name, void *user_data) { struct session *session = s; - session->name = name; + session->name = g_strdup(name); session->max = max; session->offset = offset; session->folder_list_cb = callback; -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html