mirror of
https://github.com/samba-team/samba.git
synced 2025-11-01 16:23:49 +03:00
r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for consistency.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1d1a9c11ee
commit
ec32b22ed5
@@ -319,7 +319,7 @@ const char *gtk_rpc_binding_dialog_get_host(GtkRpcBindingDialog *d)
|
||||
|
||||
struct dcerpc_binding *gtk_rpc_binding_dialog_get_binding(GtkRpcBindingDialog *d, TALLOC_CTX *mem_ctx)
|
||||
{
|
||||
struct dcerpc_binding *binding = talloc_p(mem_ctx, struct dcerpc_binding);
|
||||
struct dcerpc_binding *binding = talloc(mem_ctx, struct dcerpc_binding);
|
||||
|
||||
ZERO_STRUCT(binding->object);
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ GtkWidget *gtk_select_domain_dialog_new (struct dcerpc_pipe *sam_pipe)
|
||||
status = dcerpc_samr_Connect(sam_pipe, mem_ctx, &cr);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
gtk_show_ntstatus(NULL, status);
|
||||
talloc_destroy(mem_ctx);
|
||||
talloc_free(mem_ctx);
|
||||
return GTK_WIDGET(d);
|
||||
}
|
||||
|
||||
@@ -168,11 +168,11 @@ GtkWidget *gtk_select_domain_dialog_new (struct dcerpc_pipe *sam_pipe)
|
||||
status = dcerpc_samr_Close(sam_pipe, mem_ctx, &dr);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
gtk_show_ntstatus(NULL, status);
|
||||
talloc_destroy(mem_ctx);
|
||||
talloc_free(mem_ctx);
|
||||
return GTK_WIDGET ( d );
|
||||
}
|
||||
|
||||
talloc_destroy(mem_ctx);
|
||||
talloc_free(mem_ctx);
|
||||
|
||||
return GTK_WIDGET ( d );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user