Commit 142ea27a authored by Xavier Thompson's avatar Xavier Thompson

Fix Forked move/destruction

parent a40f0ea8
......@@ -80,7 +80,9 @@ namespace typon
{
if (_result)
{
_refcount->decref();
if (_refcount) {
_refcount->decref();
}
}
else
{
......@@ -152,7 +154,9 @@ namespace typon
{
if (_result)
{
reinterpret_cast<ForkRefcount *>(_data)->decref();
if (_data) {
reinterpret_cast<ForkRefcount *>(_data)->decref();
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment