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