ret = conv_payload_set_app_control(handle, "app_control", app_control);
assert_eq(ret, CONV_ERROR_NONE);
+ app_control_destroy(app_control);
+
ret = conv_payload_destroy(handle);
assert_eq(ret, CONV_ERROR_NONE);
ret = conv_payload_set_app_control(NULL, "app_control", app_control);
assert_eq(ret, CONV_ERROR_INVALID_PARAMETER);
+ app_control_destroy(app_control);
+
ret = conv_payload_destroy(handle);
assert_eq(ret, CONV_ERROR_NONE);
ret = conv_payload_get_app_control(handle, "app_control", &app_control_2);
assert_eq(ret, CONV_ERROR_NONE);
+ app_control_destroy(app_control);
+ app_control_destroy(app_control_2);
+
ret = conv_payload_destroy(handle);
assert_eq(ret, CONV_ERROR_NONE);
ret = conv_payload_get_app_control(handle, NULL, &app_control_2);
assert_eq(ret, CONV_ERROR_INVALID_PARAMETER);
+ app_control_destroy(app_control);
+
ret = conv_payload_destroy(handle);
assert_eq(ret, CONV_ERROR_NONE);
ret = conv_payload_get_app_control(handle, "app_control", NULL);
assert_eq(ret, CONV_ERROR_INVALID_PARAMETER);
+ app_control_destroy(app_control);
+
ret = conv_payload_destroy(handle);
assert_eq(ret, CONV_ERROR_NONE);