mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fixup! Frame: No Obj inheritance and introduce MakeFrame()
This commit is contained in:
parent
47cd2047bd
commit
1ae2c742d4
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ inline void Unref(Frame* f);
|
||||||
|
|
||||||
class Frame {
|
class Frame {
|
||||||
public:
|
public:
|
||||||
|
~Frame() {
|
||||||
|
// Unref() all elements.
|
||||||
|
for ( int i = 0; i < size; i++ )
|
||||||
|
frame[i] = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the size of the frame.
|
* Returns the size of the frame.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue