changeset 6522:0c5233faceb8

[gaim-migrate @ 7039] Clean up our timeout handlers on plugin unload. Crashes are a bad thing. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 20 Aug 2003 10:28:14 +0000
parents 74d5488cb3b6
children d7e04709be96
files plugins/perl/perl.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/perl/perl.c	Wed Aug 20 10:26:09 2003 +0000
+++ b/plugins/perl/perl.c	Wed Aug 20 10:28:14 2003 +0000
@@ -80,6 +80,8 @@
 #include "debug.h"
 #include "plugin.h"
 
+#include "perl-handlers.h"
+
 #define PERL_PLUGIN_ID "core-perl"
 
 typedef struct
@@ -364,6 +366,7 @@
 	LEAVE;
 
 	gaim_signals_disconnect_by_handle(plugin);
+	gaim_perl_timeout_clear_for_plugin(plugin);
 
 	return TRUE;
 }