Index: /branches/eam_02_branch/psModules/src/objects/pmSource.c
===================================================================
--- /branches/eam_02_branch/psModules/src/objects/pmSource.c	(revision 12979)
+++ /branches/eam_02_branch/psModules/src/objects/pmSource.c	(revision 12980)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.25.4.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-04-23 18:04:18 $
+ *  @version $Revision: 1.25.4.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-04-24 03:15:27 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -215,6 +215,5 @@
 	// XXX how do we extend the mask?  do we need to keep the old masked pixels?
 	// the object mask is a copy, and used to define the source pixels
-        psFree (mySource->maskObj);
-	mySource->maskObj = psImageCopy (NULL, mySource->maskView, PS_TYPE_MASK);
+	mySource->maskObj = psImageCopy (mySource->maskObj, mySource->maskView, PS_TYPE_MASK);
 	
 	// XXX what about the modelFlux image?
