Revision: 48380
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48380
Author:   campbellbarton
Date:     2012-06-28 17:26:21 +0000 (Thu, 28 Jun 2012)
Log Message:
-----------
add NULL check for ibuf, was crashing while rendering randomly

Modified Paths:
--------------
    
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ViewerBaseOperation.cpp

Modified: 
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ViewerBaseOperation.cpp
===================================================================
--- 
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ViewerBaseOperation.cpp
   2012-06-28 15:41:44 UTC (rev 48379)
+++ 
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ViewerBaseOperation.cpp
   2012-06-28 17:26:21 UTC (rev 48380)
@@ -92,7 +92,8 @@
 void ViewerBaseOperation::deinitExecution()
 {
        ImBuf *ibuf = BKE_image_acquire_ibuf(this->m_image, this->m_imageUser, 
&this->m_lock);
-       IMB_display_buffer_invalidate(ibuf);
+       if (ibuf)
+               IMB_display_buffer_invalidate(ibuf);
        BKE_image_release_ibuf(this->m_image, this->m_lock);
 
        this->m_outputBuffer = NULL;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to