mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
Fixed NS_INIT_REFCNT problem.
This commit is contained in:
parent
2e35a63334
commit
f4e90ed3fd
@ -75,7 +75,7 @@ NS_IMPL_ISUPPORTS(MyService, kIMyServiceIID);
|
||||
|
||||
MyService::MyService(nsISupports* outer)
|
||||
{
|
||||
NS_INIT_REFCNT(outer);
|
||||
NS_INIT_REFCNT();
|
||||
// incrementing this will keep our factory from getting unloaded
|
||||
gFact->mOutstandingInstances++;
|
||||
printf(" creating my service\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user