Merge pull request #10637 from akallabeth/dealloc-fix
[warnings] fix mismatched-dealloc
This commit is contained in:
commit
f86f70a022
@ -656,7 +656,10 @@ FREERDP_DSP_CONTEXT* freerdp_dsp_ffmpeg_context_new(BOOL encode)
|
|||||||
return context;
|
return context;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
WINPR_PRAGMA_DIAG_PUSH
|
||||||
|
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||||
freerdp_dsp_ffmpeg_context_free(context);
|
freerdp_dsp_ffmpeg_context_free(context);
|
||||||
|
WINPR_PRAGMA_DIAG_POP
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -804,7 +804,10 @@ ADDIN_ARGV* freerdp_addin_argv_new(size_t argc, const char* argv[])
|
|||||||
return args;
|
return args;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
WINPR_PRAGMA_DIAG_PUSH
|
||||||
|
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||||
freerdp_addin_argv_free(args);
|
freerdp_addin_argv_free(args);
|
||||||
|
WINPR_PRAGMA_DIAG_POP
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -833,7 +833,10 @@ rdpSettings* freerdp_settings_new(DWORD flags)
|
|||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
out_fail:
|
out_fail:
|
||||||
|
WINPR_PRAGMA_DIAG_PUSH
|
||||||
|
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||||
freerdp_settings_free(settings);
|
freerdp_settings_free(settings);
|
||||||
|
WINPR_PRAGMA_DIAG_POP
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1164,7 +1167,10 @@ rdpSettings* freerdp_settings_clone(const rdpSettings* settings)
|
|||||||
|
|
||||||
return _settings;
|
return _settings;
|
||||||
out_fail:
|
out_fail:
|
||||||
|
WINPR_PRAGMA_DIAG_PUSH
|
||||||
|
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||||
freerdp_settings_free(_settings);
|
freerdp_settings_free(_settings);
|
||||||
|
WINPR_PRAGMA_DIAG_POP
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
@ -582,7 +582,11 @@ proxyConfig* server_config_load_ini(wIniFile* ini)
|
|||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
out:
|
out:
|
||||||
|
WINPR_PRAGMA_DIAG_PUSH
|
||||||
|
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||||
pf_server_config_free(config);
|
pf_server_config_free(config);
|
||||||
|
WINPR_PRAGMA_DIAG_POP
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -989,7 +993,10 @@ BOOL pf_config_clone(proxyConfig** dst, const proxyConfig* config)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
WINPR_PRAGMA_DIAG_PUSH
|
||||||
|
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||||
pf_server_config_free(tmp);
|
pf_server_config_free(tmp);
|
||||||
|
WINPR_PRAGMA_DIAG_POP
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user