mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
Be sure to NS_INIT_REFCNT() for InMemoryResourceCursor() creation.
This commit is contained in:
parent
53409ef749
commit
ece7ff423b
@ -736,6 +736,7 @@ InMemoryResourceCursor::InMemoryResourceCursor(InMemoryDataSource* ds)
|
||||
: mDataSource(ds),
|
||||
mNext(-1)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
mDataSource = ds;
|
||||
NS_ADDREF(ds);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user