Moved new and delete away from ResourceEditor into util.cpp
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1838 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0707a05326
commit
9ff5b1f33e
2 changed files with 16 additions and 11 deletions
|
@ -308,4 +308,19 @@ BYTE* get_dlg(HINSTANCE hUIFile, WORD dlgId, char* filename) {
|
|||
}
|
||||
return pbUIData;
|
||||
}
|
||||
#endif //NSIS_CONFIG_VISIBLE_SUPPORT
|
||||
#endif //NSIS_CONFIG_VISIBLE_SUPPORT
|
||||
|
||||
void *operator new(size_t size) {
|
||||
void *p = malloc(size);
|
||||
if (!p)
|
||||
throw bad_alloc();
|
||||
return p;
|
||||
}
|
||||
|
||||
void operator delete(void *p) {
|
||||
if (p) free(p);
|
||||
}
|
||||
|
||||
void operator delete [](void *p) {
|
||||
if (p) free(p);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue