mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-08-25 19:25:48 -05:00
Fix potential memory leak when creating config items fails
This commit is contained in:
@@ -98,6 +98,7 @@ extern "C" bool WUPSConfigItemIntegerRange_AddToCategory(WUPSConfigCategoryHandl
|
||||
};
|
||||
|
||||
if (WUPSConfigCategory_AddItem(cat, item->handle) < 0) {
|
||||
WUPSConfigItem_Destroy(item->handle);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user