Be sure to NS_INIT_REFCNT() for InMemoryResourceCursor() creation.

This commit is contained in:
rjc%netscape.com 1999-03-19 01:09:48 +00:00
parent 53409ef749
commit ece7ff423b

View File

@ -736,6 +736,7 @@ InMemoryResourceCursor::InMemoryResourceCursor(InMemoryDataSource* ds)
: mDataSource(ds),
mNext(-1)
{
NS_INIT_REFCNT();
mDataSource = ds;
NS_ADDREF(ds);