/pidgin/main: dd1760ed79e9: Remove call to the deprecated and st...

Michael McConville mmcconville at mykolab.com
Thu Jul 16 16:34:32 EDT 2015


Changeset: dd1760ed79e9e8eb8cfcd5124298cfe4d99e1e45
Author:	 Michael McConville <mmcconville at mykolab.com>
Date:	 2015-07-16 16:32 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/dd1760ed79e9

Description:

Remove call to the deprecated and stubbed gnutls_global_set_mem_functions(). Fixes #16702

diffstat:

 libpurple/plugins/ssl/ssl-gnutls.c |  14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diffs (24 lines):

diff --git a/libpurple/plugins/ssl/ssl-gnutls.c b/libpurple/plugins/ssl/ssl-gnutls.c
--- a/libpurple/plugins/ssl/ssl-gnutls.c
+++ b/libpurple/plugins/ssl/ssl-gnutls.c
@@ -171,20 +171,6 @@ ssl_gnutls_init_gnutls(void)
 	const char *debug_level;
 	const char *host_priorities_str;
 
-	/* Configure GnuTLS to use glib memory management */
-	/* I expect that this isn't really necessary, but it may prevent
-	   some bugs */
-	/* TODO: It may be necessary to wrap this allocators for GnuTLS.
-	   If there are strange bugs, perhaps look here (yes, I am a
-	   hypocrite) */
-	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");
 	if (debug_level) {
 		int level = atoi(debug_level);



More information about the Commits mailing list