Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
AutoFree Class Reference

List of all members.

Public Member Functions

 AutoFree (void *aPtr)
 ~AutoFree ()
void Invalidate ()

Private Attributes

voidmPtr

Detailed Description

Definition at line 405 of file nsWindowWatcher.cpp.


Constructor & Destructor Documentation

AutoFree::AutoFree ( void aPtr) [inline]

Definition at line 407 of file nsWindowWatcher.cpp.

                       : mPtr(aPtr) {
  }
AutoFree::~AutoFree ( ) [inline]

Definition at line 409 of file nsWindowWatcher.cpp.

              {
    if (mPtr)
      nsMemory::Free(mPtr);
  }

Member Function Documentation

void AutoFree::Invalidate ( ) [inline]

Definition at line 413 of file nsWindowWatcher.cpp.

                    {
    mPtr = 0;
  }

Member Data Documentation

void* AutoFree::mPtr [private]

Definition at line 417 of file nsWindowWatcher.cpp.


The documentation for this class was generated from the following file: