GNOME Bugzilla – Bug 693879
Memory leaks in network panel
Last modified: 2013-02-15 12:46:55 UTC
Found a couple of memleaks in the network-panel.
Created attachment 236238 [details] [review] Fix a couple of memleaks
Review of attachment 236238 [details] [review]: ::: panels/network/net-object.c @@ +112,3 @@ { g_return_if_fail (NET_IS_OBJECT (object)); + if (object->priv->title) g_clear_pointer (&object->priv->title); would do the same thing on one line. @@ +356,3 @@ { object->priv = NET_OBJECT_GET_PRIVATE (object); + object->priv->id = NULL; That's not necessary, the private structure in GObjects gets initialised to zero by default.
Fixed with the mentioned fixes (and without the wrong number of args in my g_clear_pointer() examples ;)