changeset 9:d5702f04b19c

Fixed a bug that disabling this plugin while watch dog function has been hooked causes crash.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 17 Sep 2008 11:04:42 +0900
parents 8af1f090ba9a
children 7c9624c8a109
files README pidgin-audacious.c
diffstat 2 files changed, 20 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/README	Sat Mar 01 03:18:22 2008 +0900
+++ b/README	Wed Sep 17 11:04:42 2008 +0900
@@ -1,4 +1,5 @@
-pidgin-audacious-2.0.0
+pidgin-audacious-2.0.1
+
 
 1. What's this?
 
@@ -14,6 +15,7 @@
 audacious (which capable of DBus connection expected to be released
 as 1.4.0.).
 
+
 2. How to build
 
 Building pidgin-audacious plugin is very simple. Please do
@@ -23,7 +25,8 @@
 make install
 
 If you would like to test new alias substitution feature, please apply
-included patch against the pidgin source. 
+included patch against the pidgin source.
+
 
 3. Usage
 
@@ -37,7 +40,16 @@
 alias respectively. The preferences dialog is available from plugins
 window in pidgin.
 
-4. Acknowledgment
+
+4. History
+
+2.0.1
+
+Fixed a bug that disabling this plugin while watch dog function has
+been hooked causes crash.
+
+
+5. Acknowledgment
 
 This plugin has been built based on Jon Oberheide's
 gaim-rhythmbox-2.0beta2. I greatly appreciate his work.
--- a/pidgin-audacious.c	Sat Mar 01 03:18:22 2008 +0900
+++ b/pidgin-audacious.c	Wed Sep 17 11:04:42 2008 +0900
@@ -392,7 +392,7 @@
 	val = g_hash_table_lookup(seed_alias, key);
 	g_return_val_if_fail(val != NULL, FALSE);
 
-	aud_debug("write back alias %s\n", val);
+	aud_debug("write back alias %s\n", (char *)val);
 	purple_account_set_alias(account, val); //oct16
 
 	g_free(key);
@@ -427,6 +427,8 @@
 {
 	aud_debug("pidgin-audacious unload called\n");
 
+	g_source_remove(timeout_tag);
+
 	g_hash_table_destroy(seed_status);
 	g_hash_table_destroy(seed_alias);
 	g_hash_table_destroy(seed_userinfo);
@@ -447,11 +449,11 @@
 	/* create gtk elements for the plugin preferences */
 	pref = purple_plugin_pref_new_with_label("Pidgin-Audacious Configuration");
 	purple_plugin_pref_frame_add(frame, pref);
-	
+
 	pref = purple_plugin_pref_new_with_name_and_label(OPT_PROCESS_STATUS,
 			"Expand " SONG_TOKEN " to song info in the status message");
 	purple_plugin_pref_frame_add(frame, pref);
-	
+
 	pref = purple_plugin_pref_new_with_name_and_label(OPT_PROCESS_USERINFO,
 			"Expand " SONG_TOKEN " to song info in the user info");
 	purple_plugin_pref_frame_add(frame, pref);