Index: /branches/pap/psphot/src/psphotEfficiency.c
===================================================================
--- /branches/pap/psphot/src/psphotEfficiency.c	(revision 25333)
+++ /branches/pap/psphot/src/psphotEfficiency.c	(revision 25334)
@@ -412,5 +412,5 @@
 
     pmDetEff *de = pmDetEffAlloc(magLim, numSources, numBins); // Detection efficiency
-    de->magOffsets = magOffsets;
+    de->magOffsets = psVectorCopy(NULL, magOffsets, PS_TYPE_F32);
     de->counts = count;
     de->magDiffMean = magDiffMean;
@@ -422,4 +422,7 @@
     psFree(de);
 
+    psLogMsg("psphot", PS_LOG_INFO, "Detection efficiency: %lf sec\n", psTimerClear("psphot.fake"));
+
+
     return true;
 }
