Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'skypeweb/purple2compat/purple-socket.c')
-rw-r--r--skypeweb/purple2compat/purple-socket.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/skypeweb/purple2compat/purple-socket.c b/skypeweb/purple2compat/purple-socket.c
index bf429ed..fe64f89 100644
--- a/skypeweb/purple2compat/purple-socket.c
+++ b/skypeweb/purple2compat/purple-socket.c
@@ -77,9 +77,11 @@ handle_remove(PurpleSocket *ps)
PurpleConnection *gc = ps->gc;
GSList *l;
- l = g_hash_table_lookup(handles, gc);
- l = g_slist_remove(l, ps);
- g_hash_table_insert(handles, gc, l);
+ l = g_hash_table_lookup(handles, gc);
+ if (l != NULL) {
+ l = g_slist_remove(l, ps);
+ g_hash_table_insert(handles, gc, l);
+ }
}
void