frame: added bool function returning whether the frame is allocated or not
This commit is contained in:
@@ -145,6 +145,11 @@ void Frame::allocate()
|
||||
}
|
||||
}
|
||||
|
||||
bool Frame::is_allocated() const
|
||||
{
|
||||
return !data_.isEmpty();
|
||||
}
|
||||
|
||||
void Frame::destroy()
|
||||
{
|
||||
data_.clear();
|
||||
|
||||
Reference in New Issue
Block a user