update code style

This commit is contained in:
vcaesar 2019-03-19 11:15:33 -04:00
parent 022e79d6d3
commit 3d4f723800
2 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
cancelButtonTitle,
NULL,
&responseFlags);
if (alertHeader != NULL) CFRelease(alertHeader);
if (alertMessage != NULL) CFRelease(alertMessage);
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);

View File

@ -560,7 +560,7 @@ void close_window_by_PId(uintptr pid, uintptr isHwnd){
// CloseWindow
void close_window_by_Id(MData m_data){
// Check window validity
if (!IsValid()) {return;}
if (!IsValid()) { return; }
#if defined(IS_MACOSX)
AXUIElementRef b = NULL;
@ -591,7 +591,7 @@ void close_window_by_Id(MData m_data){
char* get_main_title(){
// Check if the window is valid
if (!IsValid()) {return "IsValid failed.";}
if (!IsValid()) { return "IsValid failed."; }
return get_title_by_hand(mData);
}