Logo Search packages:      
Sourcecode: xulrunner version File versions

void nsStringBuffer::Release ( void   ) 

Decrement the reference count on this string buffer. The string buffer will be destroyed when its reference count reaches zero.

Definition at line 190 of file nsSubstring.cpp.

  {
    PRInt32 count = PR_AtomicDecrement(&mRefCount);
    NS_LOG_RELEASE(this, count, "nsStringBuffer");
    if (count == 0)
      {
        STRING_STAT_INCREMENT(Free);
        free(this); // we were allocated with |malloc|
      }
  }


Generated by  Doxygen 1.6.0   Back to index