зеркало из https://github.com/mozilla/pjs.git
* NOT PART OF TBOX BUILDS *
Fixed bug with sending NULL pointer to object
This commit is contained in:
Родитель
124d13f3df
Коммит
a44e0cffc3
|
@ -34,6 +34,7 @@ public class bcJavaSample implements bcIJavaSample {
|
|||
} else {
|
||||
result = null;
|
||||
}
|
||||
System.out.println("--[java]bcJavaSample::queryInterface result=null"+(result==null));
|
||||
}
|
||||
public void test0() {
|
||||
System.out.println("--[java]bcJavaSample.test0 ");
|
||||
|
|
|
@ -360,7 +360,7 @@ bcXPCOMMarshalToolkit::UnMarshalElement(void *data, bcIUnMarshaler *um, nsXPTPar
|
|||
printf("%d oid",(int) oid);
|
||||
nsIID iid;
|
||||
um->ReadSimple(&iid,bc_T_IID);
|
||||
nsISupports *proxy;
|
||||
nsISupports *proxy = NULL;
|
||||
if (oid != 0) {
|
||||
NS_WITH_SERVICE(bcORB, _orb, kORBCIID, &r);
|
||||
if (NS_FAILED(r)) {
|
||||
|
|
|
@ -89,7 +89,7 @@ nsrefcnt bcXPCOMProxy::AddRef(void) {
|
|||
|
||||
nsrefcnt bcXPCOMProxy::Release(void) {
|
||||
nsrefcnt cnt = (nsrefcnt) PR_AtomicDecrement((PRInt32*)&mRefCnt);
|
||||
printf("--[c++] bcXPCOMProxy::AddRef %d\n",(unsigned)cnt);
|
||||
printf("--[c++] bcXPCOMProxy::Release %d\n",(unsigned)cnt);
|
||||
if(0 == cnt) {
|
||||
delete this;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче