Skip to content

Commit d79acf4

Browse files
author
Sirius Bakke
committed
Bugfix: handle NULL in removeRef
1 parent acc2a27 commit d79acf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libfwbuilder/src/fwbuilder/FWObject.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,8 @@ void FWObject::removeAllInstances(FWObject *rm)
992992

993993
void FWObject::removeRef(FWObject *obj)
994994
{
995+
if (!obj) return;
996+
995997
int obj_id = obj->getId();
996998
for(list<FWObject*>::iterator m=begin(); m!=end(); ++m)
997999
{

0 commit comments

Comments
 (0)