mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
* NOT PART OF TBOX BUILDS *
Fixed bug with sending NULL pointer to object
This commit is contained in:
parent
7d42df7e4b
commit
b90789453f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user