Removed unnecessary malloc() at all
This commit is contained in:
parent
2c74b61bf9
commit
6376c9a311
|
@ -297,9 +297,9 @@ void UndoLastPatch(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void GotoAddress(HWND hwnd) {
|
void GotoAddress(HWND hwnd) {
|
||||||
char* gotoaddressstring = (char*)malloc(8);
|
char gotoaddressstring[8];
|
||||||
int gotoaddress;
|
int gotoaddress;
|
||||||
char* gototitle = (char*)malloc(18);
|
char gototitle[18];
|
||||||
|
|
||||||
gotoaddressstring[0] = '\0';
|
gotoaddressstring[0] = '\0';
|
||||||
sprintf(gototitle, "%s%X%s", "Goto (0-", MaxSize-1, ")");
|
sprintf(gototitle, "%s%X%s", "Goto (0-", MaxSize-1, ")");
|
||||||
|
@ -310,8 +310,6 @@ void GotoAddress(HWND hwnd) {
|
||||||
SetHexEditorAddress(gotoaddress);
|
SetHexEditorAddress(gotoaddress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(gotoaddressstring);
|
|
||||||
free(gototitle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetHexEditorAddress(int gotoaddress)
|
void SetHexEditorAddress(int gotoaddress)
|
||||||
|
|
Loading…
Reference in New Issue