Index: /branches/eam_branches/20091201/psLib/src/imageops/psImageCovariance.c
===================================================================
--- /branches/eam_branches/20091201/psLib/src/imageops/psImageCovariance.c	(revision 26794)
+++ /branches/eam_branches/20091201/psLib/src/imageops/psImageCovariance.c	(revision 26795)
@@ -174,4 +174,9 @@
     }
     psFree(covar);
+
+    if (!psThreadPoolWait(true)) {
+        psError(PS_ERR_UNKNOWN, false, "Error waiting for threads.");
+        return false;
+    }
 
     return out;
@@ -335,4 +340,9 @@
     psFree(covar);
 
+    if (!psThreadPoolWait(true)) {
+        psError(PS_ERR_UNKNOWN, false, "Error waiting for threads.");
+        return false;
+    }
+
     return out;
 }
