Index: trunk/psModules/src/objects/pmSource.c
===================================================================
--- trunk/psModules/src/objects/pmSource.c	(revision 7604)
+++ trunk/psModules/src/objects/pmSource.c	(revision 7631)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-21 03:21:16 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-22 20:04:13 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -37,4 +37,20 @@
     psFree(tmp->blends);
     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
+}
+
+void pmSourceFreePixels(pmSource *source)
+{
+
+    if (!source)
+        return;
+
+    psFree (source->pixels);
+    psFree (source->weight);
+    psFree (source->mask);
+
+    source->pixels = NULL;
+    source->weight = NULL;
+    source->mask = NULL;
+    return;
 }
 
