// Remove entry method does not exist in gecko 45 #if false public static void RemoveEntry(string url) { var xpComUri = IOService.CreateNsIUri(url); _imgCache.Instance.RemoveEntry(xpComUri); Xpcom.FreeComObject(ref xpComUri); }
protected override void Dispose(bool disposing) { // refcount (-1) Xpcom.FreeComObject(ref _seekableStream); // refcount (-1) Xpcom.FreeComObject(ref _inputStream); base.Dispose(disposing); }
private void Free() { if (_instance != null) { Xpcom.FreeComObject(ref _instance); } _instance = null; }
private void Free() { if (_instance != null && _releaseRCW) { Xpcom.FreeComObject(ref _instance); } _instance = null; }
public static Properties FindEntryProperties(string url) { var xpComUri = IOService.CreateNsIUri(url); var ret = _imgCache.Instance.FindEntryProperties(xpComUri).Wrap((x) => new Properties(x)); Xpcom.FreeComObject(ref xpComUri); return(ret); }
public static Properties FindEntryProperties(string url, GeckoDocument document) { var xpComUri = IOService.CreateNsIUri(url); var ret = Gecko.Interop.ExtensionMethods.Wrap(_imgCache.Instance.FindEntryProperties(xpComUri, document._domDocument), (x) => new Properties(x)); Xpcom.FreeComObject(ref xpComUri); return(ret); }
private void Free() { Xpcom.FreeComObject(ref _instance); }