Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1974 - trunk/Image


Chronological Thread 
  • From: arobison@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1974 - trunk/Image
  • Date: Mon, 7 Jan 2008 13:26:39 -0700 (MST)

Author: arobison
Date: Mon Jan  7 13:26:29 2008
New Revision: 1974

Modified:
   trunk/Image/CoreGraphicsFile.cc
Log:
Fixing a null pointer dereference if isCoreGraphics is passed an
invalid filename.


Modified: trunk/Image/CoreGraphicsFile.cc
==============================================================================
--- trunk/Image/CoreGraphicsFile.cc     (original)
+++ trunk/Image/CoreGraphicsFile.cc     Mon Jan  7 13:26:29 2008
@@ -110,7 +110,8 @@
 
   bool readable = (image_source ? true : false);
 
-  CFRelease(image_source);
+  if(image_source)
+    CFRelease(image_source);
 
   return readable;
 }




  • [Manta] r1974 - trunk/Image, arobison, 01/07/2008

Archive powered by MHonArc 2.6.16.

Top of page