Fix leak
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3270 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -323,8 +323,11 @@ get_product_and_vendor (DBusGConnection *connection,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (parent && tmp_product && tmp_vendor) {
|
if (parent && tmp_product && tmp_vendor) {
|
||||||
*product = g_strdup (tmp_product);
|
*product = tmp_product;
|
||||||
*vendor = g_strdup (tmp_vendor);
|
*vendor = tmp_vendor;
|
||||||
|
} else {
|
||||||
|
g_free (tmp_product);
|
||||||
|
g_free (tmp_vendor);
|
||||||
}
|
}
|
||||||
g_object_unref (proxy);
|
g_object_unref (proxy);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user