memoryleak: remove the element for real
authorJukka Rissanen <jukka.rissanen@nokia.com>
Fri, 31 Dec 2010 09:57:12 +0000 (11:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 31 Dec 2010 18:11:17 +0000 (10:11 -0800)
src/connection.c

index cb0ca22..bfd19b5 100644 (file)
@@ -408,6 +408,8 @@ static void connection_remove(struct connman_element *element)
                if (data != NULL)
                        set_default_gateway(data);
        }
+
+       connman_element_unref(element);
 }
 
 static struct connman_driver connection_driver = {