Example #1
0
// 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);
        }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     // refcount (-1)
     Xpcom.FreeComObject(ref _seekableStream);
     // refcount (-1)
     Xpcom.FreeComObject(ref _inputStream);
     base.Dispose(disposing);
 }
Example #3
0
 private void Free()
 {
     if (_instance != null)
     {
         Xpcom.FreeComObject(ref _instance);
     }
     _instance = null;
 }
Example #4
0
 private void Free()
 {
     if (_instance != null && _releaseRCW)
     {
         Xpcom.FreeComObject(ref _instance);
     }
     _instance = null;
 }
Example #5
0
        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);
        }
Example #7
0
 private void Free()
 {
     Xpcom.FreeComObject(ref _instance);
 }