Also close the input file in case of success. Fixes CID 935.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27694 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -213,6 +213,7 @@ SudokuView::SetTo(entry_ref& ref)
|
|||||||
_PushUndo();
|
_PushUndo();
|
||||||
status = fField->SetTo(_BaseCharacter(), buffer);
|
status = fField->SetTo(_BaseCharacter(), buffer);
|
||||||
Invalidate();
|
Invalidate();
|
||||||
|
fclose(file);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user