Blob Blame History Raw
diff -Nur audacious-plugins-2.2-orig/src/neon/neon.c audacious-plugins-2.2/src/neon/neon.c
--- audacious-plugins-2.2-orig/src/neon/neon.c	2009-11-22 23:49:53.000000000 +0100
+++ audacious-plugins-2.2/src/neon/neon.c	2010-02-05 19:58:04.000000000 +0100
@@ -765,6 +765,10 @@
             _LEAVE 1;
         } else {
             _ERROR("<%p> Error while reading from the network", h);
+            ne_request_destroy(h->request);
+            h->request = NULL;
+            ne_session_destroy(h->session);
+            h->session = NULL;
             _LEAVE -1;
         }
     }