[evolution-data-server] Update the fix for #578210
- From: Jedy Jedy Wang <jedywang src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Update the fix for #578210
- Date: Fri, 24 Apr 2009 02:58:14 -0400 (EDT)
commit 5689814295b65df5994f111566aec32c6a7c13ba
Author: Jedy Wang <jedy wang sun com>
Date: Fri Apr 24 14:55:21 2009 +0800
Update the fix for #578210
I missed a return in the patch if cl is not in the watched_connections list
which would cause a crash.
---
libedataserver/e-component-listener.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libedataserver/e-component-listener.c b/libedataserver/e-component-listener.c
index 00bd173..192ffe2 100644
--- a/libedataserver/e-component-listener.c
+++ b/libedataserver/e-component-listener.c
@@ -42,8 +42,10 @@ connection_listen_cb (gpointer object, gpointer user_data)
cl = (EComponentListener *)user_data;
/* cl can be removed in e_component_listener_finalize */
- if (g_list_find (watched_connections, cl) == NULL)
+ if (g_list_find (watched_connections, cl) == NULL) {
g_static_rec_mutex_unlock (&watched_lock);
+ return;
+ }
switch (ORBit_small_get_connection_status (cl->priv->component)) {
case ORBIT_CONNECTION_DISCONNECTED :
watched_connections = g_list_remove (watched_connections, cl);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]