summaryrefslogtreecommitdiff
path: root/dbeditorpp/modsettingenum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dbeditorpp/modsettingenum.cpp')
-rw-r--r--dbeditorpp/modsettingenum.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dbeditorpp/modsettingenum.cpp b/dbeditorpp/modsettingenum.cpp
index 683434c..7eaecdd 100644
--- a/dbeditorpp/modsettingenum.cpp
+++ b/dbeditorpp/modsettingenum.cpp
@@ -10,10 +10,10 @@ void FreeModuleSettingLL(ModuleSettingLL* msll)
while (item)
{
- safe_free(item->name);
+ mir_free(item->name);
temp = item;
item = (struct ModSetLinkLinkItem *)item->next;
- safe_free(temp);
+ mir_free(temp);
}
msll->first = 0;
@@ -26,19 +26,19 @@ int enumModulesSettingsProc( const char *szName , DWORD ofsModuleName , LPARAM l
ModuleSettingLL *msll = (ModuleSettingLL *)lParam;
if (!msll->first)
{
- msll->first = (struct ModSetLinkLinkItem *)malloc(sizeof(struct ModSetLinkLinkItem));
+ msll->first = (struct ModSetLinkLinkItem *)mir_alloc(sizeof(struct ModSetLinkLinkItem));
if (!msll->first) return 1;
- msll->first->name = strdup(szName);
+ msll->first->name = mir_tstrdup(szName);
msll->first->next = 0;
msll->last = msll->first;
}
else
{
- struct ModSetLinkLinkItem *item = (struct ModSetLinkLinkItem *)malloc(sizeof(struct ModSetLinkLinkItem));
+ struct ModSetLinkLinkItem *item = (struct ModSetLinkLinkItem *)mir_alloc(sizeof(struct ModSetLinkLinkItem));
if (!item) return 1;
msll->last->next = (BYTE*)item;
msll->last = (struct ModSetLinkLinkItem *)item;
- item->name = strdup(szName);
+ item->name = mir_tstrdup(szName);
item->next = 0;
}
return 0;