[libsoup/gnome-3-22] Don't leak the SoupMessage and SoupSession objects in the examples/get utility



commit 0a37fc60ffa2d1bcd738dba66f00b85af4de50a8
Author: Tomas Popela <tpopela redhat com>
Date:   Fri May 19 14:38:06 2017 +0200

    Don't leak the SoupMessage and SoupSession objects in the examples/get utility

 examples/get.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/examples/get.c b/examples/get.c
index a760592..60f56f5 100644
--- a/examples/get.c
+++ b/examples/get.c
@@ -90,6 +90,7 @@ get_url (const char *url)
                                fclose (output_file);
                }
        }
+       g_object_unref (msg);
 }
 
 /* Inline class for providing a pre-configured client certificate */
@@ -287,5 +288,7 @@ main (int argc, char **argv)
        if (!synchronous)
                g_main_loop_unref (loop);
 
+       g_object_unref (session);
+
        return 0;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]