Refactor http class to prevent memory leak
[claws.git] / src / plugins / litehtml_viewer / http.h
index c8c3bee6492aeb2189a63f18a797da9401561639..d0ae4c84cf6724a4a410c46286b29b2c47191141 100644 (file)
@@ -11,6 +11,7 @@
 class http
 {
     CURL*           curl;
+    GInputStream*   stream;
 
 public:
     http();
@@ -20,7 +21,7 @@ public:
 
 private:
     static size_t curl_write_data(char* ptr, size_t size, size_t nmemb, void* data_ptr);
-    static void destroy_giostream(gpointer data);
+    void destroy_giostream();
 };