[phodav,07/13] spice: unref GSocketAddress

Submitted by Jakub Janku on May 23, 2019, 8:37 a.m.

Details

Message ID 20190523083725.1554-8-jjanku@redhat.com
State New
Headers show
Series "Miscellaneous series" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Jakub Janku May 23, 2019, 8:37 a.m.
No need to keep it around after calling
g_socket_listener_add_address().

Signed-off-by: Jakub Janků <jjanku@redhat.com>
---
 spice/spice-webdavd.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
index d9b1fae..681e909 100644
--- a/spice/spice-webdavd.c
+++ b/spice/spice-webdavd.c
@@ -1137,6 +1137,7 @@  main (int argc, char *argv[])
                                  NULL,
                                  NULL,
                                  &error);
+  g_object_unref (saddr);
   if (error)
     {
       g_printerr ("%s\n", error->message);

Comments

On Thu, May 23, 2019 at 10:37 AM Jakub Janků <jjanku@redhat.com> wrote:
>
> No need to keep it around after calling
> g_socket_listener_add_address().
>
> Signed-off-by: Jakub Janků <jjanku@redhat.com>

ack

> ---
>  spice/spice-webdavd.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
> index d9b1fae..681e909 100644
> --- a/spice/spice-webdavd.c
> +++ b/spice/spice-webdavd.c
> @@ -1137,6 +1137,7 @@ main (int argc, char *argv[])
>                                   NULL,
>                                   NULL,
>                                   &error);
> +  g_object_unref (saddr);
>    if (error)
>      {
>        g_printerr ("%s\n", error->message);
> --
> 2.21.0
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel