deref instead of deleting

this would give a leak instead of a crash - if it was really
relevant at all.
This commit is contained in:
Oswald Buddenhagen
2010-06-15 13:44:19 +02:00
parent b49a6e7842
commit 82b72b0897

View File

@@ -65,7 +65,7 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
if (!(pro = visitor.parsedProFile(fileName)))
return 2;
if (!visitor.accept(pro)) {
delete pro;
pro->deref();
return 2;
}
@@ -108,7 +108,7 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
}
}
delete pro;
pro->deref();
return 0;
}