LCOV - code coverage report
Current view: top level - co - objectHandler.cpp (source / functions) Hit Total Coverage
Test: Collage Lines: 7 8 87.5 %
Date: 2018-01-09 16:37:03 Functions: 3 3 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2013, Stefan.Eilemann@epfl.ch
       3             :  *
       4             :  * This file is part of Collage <https://github.com/Eyescale/Collage>
       5             :  *
       6             :  * This library is free software; you can redistribute it and/or modify it under
       7             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       8             :  * by the Free Software Foundation.
       9             :  *
      10             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      11             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      12             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      13             :  * details.
      14             :  *
      15             :  * You should have received a copy of the GNU Lesser General Public License
      16             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      17             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      18             :  */
      19             : 
      20             : #include "objectHandler.h"
      21             : 
      22             : #include "object.h"
      23             : 
      24             : namespace co
      25             : {
      26           5 : void ObjectHandler::releaseObject(Object* object)
      27             : {
      28           5 :     LBASSERT(object);
      29           5 :     if (!object || !object->isAttached())
      30           0 :         return;
      31             : 
      32           5 :     if (object->isMaster())
      33           4 :         deregisterObject(object);
      34             :     else
      35           1 :         unmapObject(object);
      36             : }
      37          63 : }

Generated by: LCOV version 1.11