blob: a3dd9289d6f50570734f124033f21297c10d5603 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- src/yelp-document.c.orig 2008-09-11 20:20:59.000000000 -0400
+++ src/yelp-document.c 2008-09-11 20:20:40.000000000 -0400
@@ -748,6 +749,13 @@ request_idle_final (YelpDocument *docume
priv = document->priv;
g_mutex_lock (priv->mutex);
+
+ if (priv->reqs_pending == NULL) {
+ /*
+ Time to bail as we shouldn't be here anyway.
+ */
+ return FALSE;
+ }
for (cur = priv->reqs_pending; cur; cur = cur->next) {
request = cur->data;
|