mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-08-20 08:45:19 -05:00
Fix potential memory leak when creating config items fails
This commit is contained in:
@@ -127,6 +127,7 @@ WUPSConfigItemMultipleValues_AddToCategory(WUPSConfigCategoryHandle cat, const c
|
||||
}
|
||||
|
||||
if (WUPSConfigCategory_AddItem(cat, item->handle) < 0) {
|
||||
WUPSConfigItem_Destroy(item->handle);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user