From 140e645e8679d06f3c3374a7ba351f2c8795a849 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Wed, 25 Jun 2014 14:41:42 +0200 Subject: [PATCH] bugfix --- CHANGELOG.md | 4 ++++ PocketSharp/PocketClient.cs | 6 +++++- PocketSharp/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 180240e..7ffa45b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 4.1.3 (2014-06-25) + +- Only dispose response if available + ### 4.1.2 (2014-06-18) - Add force param to login+registration diff --git a/PocketSharp/PocketClient.cs b/PocketSharp/PocketClient.cs index 24f11ff..5283cc9 100644 --- a/PocketSharp/PocketClient.cs +++ b/PocketSharp/PocketClient.cs @@ -260,7 +260,11 @@ namespace PocketSharp finally { request.Dispose(); - response.Dispose(); + + if (response != null) + { + response.Dispose(); + } } // cache response diff --git a/PocketSharp/Properties/AssemblyInfo.cs b/PocketSharp/Properties/AssemblyInfo.cs index 0a8f0ec..47c8853 100644 --- a/PocketSharp/Properties/AssemblyInfo.cs +++ b/PocketSharp/Properties/AssemblyInfo.cs @@ -22,5 +22,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.1.2")] -[assembly: AssemblyFileVersion("4.1.2")] \ No newline at end of file +[assembly: AssemblyVersion("4.1.3")] +[assembly: AssemblyFileVersion("4.1.3")] \ No newline at end of file