[tomboy/gnome-2-32] [WebSyncService] Prevent a crash in the libproxy finalizer on Windows
- From: Benjamin Podszun <bpodszun src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy/gnome-2-32] [WebSyncService] Prevent a crash in the libproxy finalizer on Windows
- Date: Mon, 4 Oct 2010 19:06:43 +0000 (UTC)
commit 0e969fabdcc85223178eaa5621b804408e372521
Author: Jeff V Stein <jeff jeffvstein org>
Date: Mon Oct 4 21:05:23 2010 +0200
[WebSyncService] Prevent a crash in the libproxy finalizer on Windows
Tomboy/Addins/WebSyncService/LibProxy/LibProxy.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/Addins/WebSyncService/LibProxy/LibProxy.cs b/Tomboy/Addins/WebSyncService/LibProxy/LibProxy.cs
index 1a46ef7..26c7687 100644
--- a/Tomboy/Addins/WebSyncService/LibProxy/LibProxy.cs
+++ b/Tomboy/Addins/WebSyncService/LibProxy/LibProxy.cs
@@ -76,8 +76,14 @@ namespace LibProxy {
~ProxyFactory()
{
+ try {
// TODO: See note above...
px_proxy_factory_free(this.self);
+ }
+ catch (DllNotFoundException)
+ {
+ // Couldn't load LibProxy previously, prevent failure on GC
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]