[tasque/viewmodel: 31/78] Added null checks in Dispose methods
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/viewmodel: 31/78] Added null checks in Dispose methods
- Date: Wed, 29 Aug 2012 18:37:16 +0000 (UTC)
commit 6cfd3e7cb3c565164bd122cea4b92d47f7af4085
Author: Antonius Riha <antoniusriha gmail com>
Date: Sun Jul 29 18:31:38 2012 +0200
Added null checks in Dispose methods
src/Tasque.Gtk/GtkLinuxApplication.cs | 2 +-
src/Tasque.Gtk/GtkWinApplication.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Tasque.Gtk/GtkLinuxApplication.cs b/src/Tasque.Gtk/GtkLinuxApplication.cs
index 25f3159..caec039 100644
--- a/src/Tasque.Gtk/GtkLinuxApplication.cs
+++ b/src/Tasque.Gtk/GtkLinuxApplication.cs
@@ -32,7 +32,7 @@ namespace Tasque
{
protected override void Dispose (bool disposing)
{
- if (disposing)
+ if (disposing && remoteInstance != null)
remoteInstance = null;
base.Dispose (disposing);
diff --git a/src/Tasque.Gtk/GtkWinApplication.cs b/src/Tasque.Gtk/GtkWinApplication.cs
index 183bbd6..b2d78aa 100644
--- a/src/Tasque.Gtk/GtkWinApplication.cs
+++ b/src/Tasque.Gtk/GtkWinApplication.cs
@@ -33,7 +33,7 @@ namespace Tasque
{
protected override void Dispose (bool disposing)
{
- if (disposing) {
+ if (disposing && waitHandle != null) {
waitHandle.Dispose ();
waitHandle = null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]