changeset 13438:068282089843

[gaim-migrate @ 15813] Resolves CID 69: 298 data = plugin->extra; 299 Event deref_ptr: Directly dereferenced pointer "data" 300 g_hash_table_remove(tcl_plugins, (gpointer)(data->interp)); Event check_after_deref: Pointer "data" dereferenced before NULL check 301 if (data != NULL) { committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Mar 2006 07:23:04 +0000
parents 4bfb720a8fc2
children 11742521716f
files plugins/tcl/tcl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/tcl/tcl.c	Tue Mar 07 07:22:09 2006 +0000
+++ b/plugins/tcl/tcl.c	Tue Mar 07 07:23:04 2006 +0000
@@ -297,8 +297,8 @@
 
 	data = plugin->extra;
 
-	g_hash_table_remove(tcl_plugins, (gpointer)(data->interp));
 	if (data != NULL) {
+		g_hash_table_remove(tcl_plugins, (gpointer)(data->interp));
 		gaim_signals_disconnect_by_handle(data->interp);
 		tcl_signal_cleanup(data->interp);
 		Tcl_Release((ClientData)data->interp);