Index: /branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c
===================================================================
--- /branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c	(revision 29353)
+++ /branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c	(revision 29354)
@@ -219,20 +219,20 @@
     }
 
-    psImageJpegOptions *options = psImageJpegOptionsAlloc();
-    psImageJpegColormapSet(options, colormapName);
+    psImageJpegOptions *jpegOptions = psImageJpegOptionsAlloc();
+    psImageJpegColormapSet(jpegOptions, colormapName);
 
     // default options are: no flip in X or Y, scale bar on bottom
-    options->min = min;
-    options->max = max;
+    jpegOptions->min = min;
+    jpegOptions->max = max;
 
     // NOTE: we can overlay the location of the stars from the readout by passing a bDrawBuffer to this function
 
-    if (!psImageJpeg(options, readout->image, NULL, file->filename)) {
+    if (!psImageJpeg(jpegOptions, readout->image, NULL, file->filename)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to write JPEG image");
-        psFree(map);
-        return false;
-    }
-
-    psFree(map);
-    return true;
-}
+        psFree(jpegOptions);
+        return false;
+    }
+
+    psFree(jpegOptions);
+    return true;
+}
