--- a/libpurple/plugins/ssl/ssl-gnutls.c Thu Oct 06 10:05:38 2016 -0400
+++ b/libpurple/plugins/ssl/ssl-gnutls.c Thu Oct 06 21:31:05 2016 -0500
@@ -69,20 +69,6 @@
const char *host_priorities_str;
- /* Configure GnuTLS to use glib memory management */
- /* I expect that this isn't really necessary, but it may prevent
- /* TODO: It may be necessary to wrap this allocators for GnuTLS.
- If there are strange bugs, perhaps look here (yes, I am a
- gnutls_global_set_mem_functions(
- (gnutls_alloc_function) g_malloc, /* malloc */
- (gnutls_alloc_function) g_malloc, /* secure malloc */
- NULL, /* mem_is_secure */
- (gnutls_realloc_function) g_realloc, /* realloc */
- (gnutls_free_function) g_free /* free */
debug_level = g_getenv("PURPLE_GNUTLS_DEBUG");
int level = atoi(debug_level);