Commit 9bac0b08 authored by Christophe Fergeau's avatar Christophe Fergeau Committed by Martin Szulecki

Make sure to not mix free/g_free

In theory, they may not be using different allocator implementations.
parent f79885c3
......@@ -280,7 +280,10 @@ update_ui (CompletedMessage *msg)
plist_dict_get_item(dict, "MarketingName");
if (node) {
plist_get_string_val(node, &val);
char *tmp;
plist_get_string_val(node, &tmp);
val = g_strdup(tmp);
free(tmp);
} else {
val = g_strdup(devtype);
}
......@@ -304,7 +307,7 @@ update_ui (CompletedMessage *msg)
gtk_label_set_text(lbDeviceModel, val);
}
if (val) {
free(val);
g_free(val);
}
val = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment