prevent death by zombie
[goodguy/history.git] / cinelerra-5.1 / guicast / vframe.C
index 36418704aa8d277c2a2bb4751a529b9c4e1178f9..e5d3759724ab1d8c460bd65b1f4806861c17c9cf 100644 (file)
@@ -536,7 +536,7 @@ void VFrame::set_memory(BC_Bitmap *bitmap)
 {
        int shmid = 0;
        unsigned char *data = 0;
-       if( bitmap->is_shared() )
+       if( bitmap->is_shared() && !bitmap->is_zombie() )
                shmid = bitmap->get_shmid();
        else
                data = bitmap->get_data();