Fix leaks in GSocketClient and GThreadedResolver
[platform/upstream/glib.git] / gio / tests / socket-client.c
index 8409a5f..f0f7c4e 100644 (file)
@@ -181,6 +181,7 @@ main (int argc,
       g_object_unref (address);
     }
   g_object_unref (enumerator);
+  g_object_unref (connectable);
 
   g_print ("Connected to %s\n",
           socket_address_to_string (address));
@@ -293,6 +294,7 @@ main (int argc,
     }
 
   g_object_unref (G_OBJECT (socket));
+  g_object_unref (G_OBJECT (address));
 
   return 0;
 }